X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_init.cxx;h=5419fcd040a421a6c6c44a009cee0d98375fe68e;hb=2fbab0d702c9b1331aeec3c66167b813d101b593;hp=1b301b8d8d801c688340cabe7ad9273a41e42205;hpb=96b88e539f769c0e0d70d112d7f98f6843760e10;p=flightgear.git diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 1b301b8d8..5419fcd04 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -219,11 +219,9 @@ bool fgInitConfig ( int argc, char **argv ) { SG_LOG(SG_INPUT, SG_INFO, "Reading global preferences"); try { readProperties(props_path.str(), globals->get_props()); - } catch (const sg_io_exception &e) { + } catch (const sg_exception &e) { string message = "Error reading global preferences: "; - message += e.getMessage(); - message += "\n at "; - message += e.getLocation().asString(); + message += e.getFormattedMessage(); SG_LOG(SG_INPUT, SG_ALERT, message); exit(2); }