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();
|
deinit_ncurses();
|
||||||
}
|
}
|
||||||
catch (std::runtime_error& error)
|
catch (...)
|
||||||
{
|
{
|
||||||
deinit_ncurses();
|
deinit_ncurses();
|
||||||
puts("unhandled exception : ");
|
throw;
|
||||||
puts(error.what());
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user