1
0
Fork 0

Fix broken tank properties. More verbose generic protocol error messages

This commit is contained in:
Torsten Dreyer 2011-03-22 18:00:55 +01:00
parent 991beb0b5e
commit 0114fd962e
2 changed files with 3 additions and 3 deletions

View file

@ -94,9 +94,9 @@ void FDMShell::bind()
if (_impl->get_bound()) { if (_impl->get_bound()) {
throw sg_exception("FDMShell::bind of bound FGInterface impl"); throw sg_exception("FDMShell::bind of bound FGInterface impl");
} }
_tankProperties.bind();
_impl->bind(); _impl->bind();
} }
_tankProperties.bind();
} }
void FDMShell::unbind() void FDMShell::unbind()

View file

@ -541,9 +541,9 @@ FGGeneric::reinit()
SGPropertyNode root; SGPropertyNode root;
try { try {
readProperties(path.str(), &root); readProperties(path.str(), &root);
} catch (const sg_exception &) { } catch (const sg_exception & ex) {
SG_LOG(SG_GENERAL, SG_ALERT, SG_LOG(SG_GENERAL, SG_ALERT,
"Unable to load the protocol configuration file"); "Unable to load the protocol configuration file: " << ex.getFormattedMessage() );
return; return;
} }