]> git.mxchange.org Git - flightgear.git/commitdiff
Stuart Buchanan: Properly catch an exception.
authorehofman <ehofman>
Tue, 29 Dec 2009 09:37:19 +0000 (09:37 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 30 Dec 2009 09:29:05 +0000 (10:29 +0100)
src/ATCDCL/ATCmgr.cxx

index 0d78c458bb3c73742cb0ed8d86bfa4069ceb3fd4..9e5085adbdb8bb2d4f9bd6741abafb54026a22fa 100644 (file)
@@ -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;