diff options
author | David Robillard <d@drobilla.net> | 2007-03-31 20:41:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-31 20:41:51 +0000 |
commit | 8bb02cb8c13430808fd4bb02e62942cace3fb65b (patch) | |
tree | 28af333ccd0ad6831f178981b7d611fe4678195d /src/main.cpp | |
parent | 47372f00cc6fe39f65594aa6edf6544157e94ce7 (diff) | |
download | patchage-8bb02cb8c13430808fd4bb02e62942cace3fb65b.tar.gz patchage-8bb02cb8c13430808fd4bb02e62942cace3fb65b.tar.bz2 patchage-8bb02cb8c13430808fd4bb02e62942cace3fb65b.zip |
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
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
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 <iostream> #include <libgnomecanvasmm.h> +#include <glibmm/exception.h> #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; } |