]> git.mxchange.org Git - flightgear.git/commitdiff
Fix broken tank properties. More verbose generic protocol error messages
authorTorsten Dreyer <Torsten@t3r.de>
Tue, 22 Mar 2011 17:00:55 +0000 (18:00 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Tue, 22 Mar 2011 17:00:55 +0000 (18:00 +0100)
src/FDM/fdm_shell.cxx
src/Network/generic.cxx

index 401483e4b5ce26b26f881af1e77b30bc8bd7e391..5fa77d89518cb488ecb3c1a492f6ea7700ffaed0 100644 (file)
@@ -94,9 +94,9 @@ void FDMShell::bind()
     if (_impl->get_bound()) {
       throw sg_exception("FDMShell::bind of bound FGInterface impl");
     }
-    _tankProperties.bind();
     _impl->bind();
   }
+  _tankProperties.bind();
 }
 
 void FDMShell::unbind()
index 1ed607a39dad08e8869e96c6d5f56e9dfb86322e..71ae5a874df8f85179c927aedd8dd295eaeea24b 100644 (file)
@@ -541,9 +541,9 @@ FGGeneric::reinit()
     SGPropertyNode root;
     try {
         readProperties(path.str(), &root);
-    } catch (const sg_exception &) {
+    } catch (const sg_exception & ex) {
         SG_LOG(SG_GENERAL, SG_ALERT,
-         "Unable to load the protocol configuration file");
+         "Unable to load the protocol configuration file: " << ex.getFormattedMessage() );
          return;
     }