summaryrefslogtreecommitdiff
path: root/src/Main.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-04 23:23:13 +0000
committerPixel <Pixel>2001-11-04 23:23:13 +0000
commit0f80b4e1f92f9b12115121e55619e6e810831d41 (patch)
tree1f44a9deb2f1e581507c31e4e26b37a7f646a1dd /src/Main.cc
parent50cef89f47dbc14b00639351463aba20ca4320a0 (diff)
Better exception handling.
Diffstat (limited to 'src/Main.cc')
-rw-r--r--src/Main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Main.cc b/src/Main.cc
index cd74b60..e712a95 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -125,6 +125,11 @@ int main(int argc, char ** argv) {
exit(-1);
}
+ catch (...) {
+ cerr << "Unknow exception.\n" << endl;
+ exit(-1);
+ }
+
delete in;
exit(0);
}