From 8bb02cb8c13430808fd4bb02e62942cace3fb65b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 31 Mar 2007 20:41:51 +0000 Subject: Random exception changes (voodoo debugging for certain broke-ass gentoo systems). git-svn-id: http://svn.drobilla.net/lad/patchage@386 a436a847-0d15-0410-975c-d299462d15a1 --- src/main.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 271b312..c514e33 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,6 +19,7 @@ #include #include +#include #include "Patchage.h" #include "JackDriver.h" @@ -39,8 +40,14 @@ int main(int argc, char** argv) app.run(*patchage.window()); - } catch (std::string msg) { - std::cerr << "Caught exception, aborting. Error message was: " << msg << std::endl; + } catch (std::exception& e) { + std::cerr << "Caught exception, aborting. Error message was: " + << e.what() << std::endl; + return 1; + + } catch (Glib::Exception& e) { + std::cerr << "Caught exception, aborting. Error message was: " + << e.what() << std::endl; return 1; } -- cgit v1.2.1