diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index 2d0bd86f3..ebadbf6c0 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -630,11 +630,20 @@ int main( int argc, char **argv ) std::cout<<"Warning: compressing texture only supported when outputing to .ive"<writeNode(*root,fileNameOut); + if (result.success()) { osg::notify(osg::NOTICE)<<"Data written to '"<writeNode(node,fileName,_options.get()); + if (rr.success()) return rr; else results.push_back(rr); } @@ -1646,6 +1685,16 @@ ReaderWriter::WriteResult Registry::writeNodeImplementation(const Node& node,con return ReaderWriter::WriteResult("Warning: Could not find plugin to write nodes to file \""+fileName+"\"."); } + if (results.front().message().empty()) + { + switch(results.front().status()) + { + case(ReaderWriter::WriteResult::FILE_NOT_HANDLED): results.front().message() = "Warning: Write to \""+fileName+"\" not supported."; break; + case(ReaderWriter::WriteResult::ERROR_IN_WRITING_FILE): results.front().message() = "Warning: Error in writing to \""+fileName+"\"."; break; + default: break; + } + } + return results.front(); }