]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_init.cxx
Various floating point / initial value bug fixes from Christian Mayer.
[flightgear.git] / src / Main / fg_init.cxx
index 1b301b8d8d801c688340cabe7ad9273a41e42205..5419fcd040a421a6c6c44a009cee0d98375fe68e 100644 (file)
@@ -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);
     }