From f3cc65a51deb58f7808a771a223eea5942a80949 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 5 Sep 2004 01:19:47 +0000 Subject: [PATCH] why was this catching everything? Non-RageExceptions should be caught and handled by the individual drivers. --- stepmania/src/arch/Dialog/Dialog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/Dialog/Dialog.cpp b/stepmania/src/arch/Dialog/Dialog.cpp index de1cc84a6b..8feca7bb97 100644 --- a/stepmania/src/arch/Dialog/Dialog.cpp +++ b/stepmania/src/arch/Dialog/Dialog.cpp @@ -46,12 +46,15 @@ void Dialog::Init() #endif if( !DriversToTry[i].CompareNoCase("Null") ) g_pImpl = new DialogDriverNull; } - catch(...)//const RageException &e) + catch( const RageException &e ) { -// if( LOG ) -// LOG->Info("Couldn't load driver %s: %s", DriversToTry[i].c_str(), e.what()); + if( LOG ) + LOG->Info("Couldn't load driver %s: %s", DriversToTry[i].c_str(), e.what()); } } + + /* DialogDriverNull should have worked, at least. */ + ASSERT( g_pImpl != NULL ); } void Dialog::Shutdown()