... but use the exception text, of course. :-)
This commit is contained in:
parent
5123de61ee
commit
2c208deab8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue