From 053b2e233e45dc21ac86a5418e663af08e1f426b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 2 Sep 2011 17:05:44 +0000 Subject: [PATCH] main: catch all exceptions, close ncurses and rethrow --- src/main.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cc b/src/main.cc index 54841c06..b4169139 100644 --- a/src/main.cc +++ b/src/main.cc @@ -312,12 +312,10 @@ int main() } deinit_ncurses(); } - catch (std::runtime_error& error) + catch (...) { deinit_ncurses(); - puts("unhandled exception : "); - puts(error.what()); - return -1; + throw; } return 0; }