1
0
Fork 0

... but use the exception text, of course. :-)

This commit is contained in:
mfranz 2007-06-19 10:56:50 +00:00
parent 5123de61ee
commit 2c208deab8

View file

@ -1341,7 +1341,7 @@ do_load_xml_to_proptree(const SGPropertyNode * arg)
try { try {
readProperties(file.c_str(), targetnode, true); readProperties(file.c_str(), targetnode, true);
} catch (const sg_exception &e) { } 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; return false;
} }
@ -1383,7 +1383,7 @@ do_save_xml_from_proptree(const SGPropertyNode * arg)
try { try {
writeProperties (file.c_str(), sourcenode, true); writeProperties (file.c_str(), sourcenode, true);
} catch (const sg_exception &e) { } 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; return false;
} }