main: catch all exceptions, close ncurses and rethrow
This commit is contained in:
parent
f1631de4e0
commit
053b2e233e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user