]> git.mxchange.org Git - flightgear.git/commitdiff
... but use the exception text, of course. :-)
authormfranz <mfranz>
Tue, 19 Jun 2007 10:56:50 +0000 (10:56 +0000)
committermfranz <mfranz>
Tue, 19 Jun 2007 10:56:50 +0000 (10:56 +0000)
src/Main/fg_commands.cxx

index 6fc2a3cd8ab3a0ae62a85514b2349f4fed135fcd..c86c52ea23b39d7a5e43525abdb000ca8d227442 100644 (file)
@@ -1341,7 +1341,7 @@ do_load_xml_to_proptree(const SGPropertyNode * arg)
     try {
         readProperties(file.c_str(), targetnode, true);
     } catch (const sg_exception &e) {
-        SG_LOG(SG_IO, SG_WARN, "Warning: couldn't load file '" << file.str() << '\'');
+        SG_LOG(SG_IO, SG_WARN, "loadxml: " << e.getFormattedMessage());
         return false;
     }
 
@@ -1383,7 +1383,7 @@ do_save_xml_from_proptree(const SGPropertyNode * arg)
     try {
         writeProperties (file.c_str(), sourcenode, true);
     } catch (const sg_exception &e) {
-        SG_LOG(SG_IO, SG_WARN, "Warning: couldn't save file '" << file.str() << '\'');
+        SG_LOG(SG_IO, SG_WARN, "savexml: " << e.getFormattedMessage());
         return false;
     }