From 2a53154e0f325f0d0cf4b52225bcef767fce74e2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 29 Dec 2009 09:37:19 +0000 Subject: [PATCH] Stuart Buchanan: Properly catch an exception. --- src/ATCDCL/ATCmgr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ATCDCL/ATCmgr.cxx b/src/ATCDCL/ATCmgr.cxx index 0d78c458b..9e5085adb 100644 --- a/src/ATCDCL/ATCmgr.cxx +++ b/src/ATCDCL/ATCmgr.cxx @@ -97,8 +97,9 @@ void FGATCMgr::init() { try { voiceOK = v1->LoadVoice("default"); voice = true; - } catch ( sg_io_exception & ) { + } catch ( sg_io_exception & e) { voiceOK = false; + SG_LOG(SG_ATC, SG_ALERT, "Unable to load default voice : " << e.getFormattedMessage().c_str()); voice = false; delete v1; v1 = 0;