From: mfranz Date: Tue, 19 Jun 2007 10:56:50 +0000 (+0000) Subject: ... but use the exception text, of course. :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c208deab82672f5704abfffa872d01ebf34d333;p=flightgear.git ... but use the exception text, of course. :-) --- diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 6fc2a3cd8..c86c52ea2 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -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; }