Improved the error reporting

This commit is contained in:
Robert Osfield
2008-10-26 22:21:09 +00:00
parent 20da8e55a8
commit 1cb2fc259e

View File

@@ -84,8 +84,7 @@ class ReaderWriterIVE : public ReaderWriter
}
catch(ive::Exception e)
{
osg::notify(osg::NOTICE)<<"Error reading image: "<<e.getError()<<std::endl;
return ReadResult::FILE_NOT_HANDLED;
return e.getError();
}
}
@@ -99,8 +98,7 @@ class ReaderWriterIVE : public ReaderWriter
}
catch(ive::Exception e)
{
osg::notify(osg::NOTICE)<<"Error reading file: "<< e.getError()<<std::endl;
return ReadResult::FILE_NOT_HANDLED;
return e.getError();
}
}