diff --git a/src/ATC/AIMgr.cxx b/src/ATC/AIMgr.cxx index 2af6a0daf..3c36cde91 100644 --- a/src/ATC/AIMgr.cxx +++ b/src/ATC/AIMgr.cxx @@ -82,7 +82,7 @@ void FGAIMgr::init() { planepath.c_str(), globals->get_props(), globals->get_sim_time_sec() ); - } catch(sg_exception& e) { + } catch(sg_exception&) { _loadedDefaultOK = false; } @@ -102,7 +102,7 @@ void FGAIMgr::init() { planepath.c_str(), globals->get_props(), globals->get_sim_time_sec() ); - } catch(sg_exception& e) { + } catch(sg_exception&) { _havePiperModel = false; } diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 0b0c8acf2..8fe9ab211 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -1063,7 +1063,7 @@ fgOptConfig( const char *arg ) readProperties(file, globals->get_props()); } catch (const sg_exception &e) { string message = "Error loading config file: "; - message += e.getFormattedMessage(); + message += e.getFormattedMessage() + e.getOrigin(); SG_LOG(SG_INPUT, SG_ALERT, message); exit(2); } diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 353be612d..ddfeb906a 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -323,8 +323,13 @@ void FGTileMgr::update_queues() SGShadowVolume::occluderTypeTileObject, (ssgBranch *) dm->get_tile()->get_terra_transform()); } - } catch (const sg_exception& exc) { - SG_LOG( SG_ALL, SG_ALERT, exc.getMessage() ); + } catch (const sg_io_exception& exc) { + string m(exc.getMessage()); + m += " "; + m += exc.getLocation().asString(); + SG_LOG( SG_ALL, SG_ALERT, m ); + } catch (const sg_exception& exc) { // XXX may be redundant + SG_LOG( SG_ALL, SG_ALERT, exc.getMessage()); } dm->get_tile()->dec_pending_models();