From 50dabcaf668d5784f5c5492ab8a9a158fb4f5cad Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 6 Dec 2007 18:04:19 +0000 Subject: [PATCH] tell *why* loading a model failed --- src/Model/acmodel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/acmodel.cxx b/src/Model/acmodel.cxx index a322f66c6..d3af3b4be 100644 --- a/src/Model/acmodel.cxx +++ b/src/Model/acmodel.cxx @@ -72,7 +72,8 @@ FGAircraftModel::init () liveryPath); _aircraft->init( model ); } catch (const sg_exception &ex) { - SG_LOG(SG_GENERAL, SG_ALERT, "Failed to load aircraft from " << path); + SG_LOG(SG_GENERAL, SG_ALERT, "Failed to load aircraft from " << path << ':'); + SG_LOG(SG_GENERAL, SG_ALERT, " " << ex.getFormattedMessage()); SG_LOG(SG_GENERAL, SG_ALERT, "(Falling back to glider.ac.)"); osg::Node *model = fgLoad3DModelPanel( globals->get_fg_root(), "Models/Geometry/glider.ac",