From 2c208deab82672f5704abfffa872d01ebf34d333 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 19 Jun 2007 10:56:50 +0000 Subject: [PATCH] ... but use the exception text, of course. :-) --- src/Main/fg_commands.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5