From 0f80b4e1f92f9b12115121e55619e6e810831d41 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 4 Nov 2001 23:23:13 +0000 Subject: Better exception handling. --- src/Main.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Main.cc') 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); } -- cgit v1.2.3