From e044fa0d70708d4fa390fcc5d937f4156157b324 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 10:06:12 +0100 Subject: [PATCH] Added handling of return value --- applications/osgconv/osgconv.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index b93f52894..daeb8ca32 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -631,7 +631,10 @@ int main( int argc, char **argv ) std::string libName; while (arguments.read("-l",libName)) { - osgDB::Registry::instance()->loadLibrary(libName); + if (osgDB::Registry::instance()->loadLibrary(libName)==osgDB::Registry::NOT_LOADED) + { + OSG_NOTICE<<"Unable to load library : "<