1
0
Fork 0

Stuart Buchanan: Properly catch an exception.

This commit is contained in:
ehofman 2009-12-29 09:37:19 +00:00 committed by Tim Moore
parent 90e44c6696
commit 2a53154e0f

View 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;