]> git.mxchange.org Git - flightgear.git/commitdiff
tell *why* loading a model failed
authormfranz <mfranz>
Thu, 6 Dec 2007 18:04:19 +0000 (18:04 +0000)
committermfranz <mfranz>
Thu, 6 Dec 2007 18:04:19 +0000 (18:04 +0000)
src/Model/acmodel.cxx

index a322f66c6ea2a312c68d130abe682a9a56ce281f..d3af3b4be5e0d34544ee2a53bc33cd159c4f5cc6 100644 (file)
@@ -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",