From 0114fd962e7450b080e580fe67414ca43cd99bd7 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 22 Mar 2011 18:00:55 +0100 Subject: [PATCH] Fix broken tank properties. More verbose generic protocol error messages --- src/FDM/fdm_shell.cxx | 2 +- src/Network/generic.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FDM/fdm_shell.cxx b/src/FDM/fdm_shell.cxx index 401483e4b..5fa77d895 100644 --- a/src/FDM/fdm_shell.cxx +++ b/src/FDM/fdm_shell.cxx @@ -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() diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index 1ed607a39..71ae5a874 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -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; } -- 2.39.5