Commit 5903657e authored by Jan Möbius's avatar Jan Möbius

Throw error when no readers are available

parent 91ee22ca
Pipeline #2046 passed with stage
in 72 minutes and 53 seconds
......@@ -94,6 +94,12 @@ read(const std::string& _filename, BaseImporter& _bi, Options& _opt)
std::set<BaseReader*>::const_iterator it = reader_modules_.begin();
std::set<BaseReader*>::const_iterator it_end = reader_modules_.end();
if( it == it_end )
{
omerr() << "[OpenMesh::IO::_IOManager_] No reading modules available!\n";
return false;
}
// Try all registered modules
for(; it != it_end; ++it)
if ((*it)->can_u_read(_filename))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment