diff --git a/src/osgDB/InputStream.cpp b/src/osgDB/InputStream.cpp index dd1d494ff..6d2de5ff5 100644 --- a/src/osgDB/InputStream.cpp +++ b/src/osgDB/InputStream.cpp @@ -843,7 +843,7 @@ osg::ref_ptr InputStream::readImage(bool readFromExternal) } else { - if (!rr.success()) OSG_WARN << rr.statusMessage() << std::endl; + if (!rr.success()) OSG_WARN << "InputStream::readImage(): " << rr.statusMessage() << ", filename: " << name << std::endl; } if ( !image && _forceReadingImage ) image = new osg::Image;