Commit 8400a7d9 authored by Jens Korinth's avatar Jens Korinth

tapasco-debug: leave ncurses before exiting

parent 0dff8108
...@@ -33,6 +33,14 @@ int main(int argc, char *argv[]) ...@@ -33,6 +33,14 @@ int main(int argc, char *argv[])
menu.show(); menu.show();
exit_ncurses(); exit_ncurses();
} catch (int e) { } catch (int e) {
exit_ncurses();
cerr << "Error code: " << e << endl; cerr << "Error code: " << e << endl;
} catch (tapasco::Tapasco::tapasco_error e) {
exit_ncurses();
cerr << e.what() << endl;
} catch (runtime_error e) {
exit_ncurses();
cerr << "Unknown error occurred." << endl;
exit(1);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment