X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fif-2.cpp;h=0d35a125b57cf203cc640ea71250436fbac9ae83;hp=89e6cc811d0528f11485c0b8a652abf93305c156;hb=207332eec9416d299766abb697312cfd27eb890e;hpb=5cf6874680f80d238bf34535d711dc223813f951 diff --git a/src/if-2.cpp b/src/if-2.cpp index 89e6cc8..0d35a12 100644 --- a/src/if-2.cpp +++ b/src/if-2.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: if-2.cpp,v 1.5 2000/06/18 10:27:11 kevin Exp $ +** $Id: if-2.cpp,v 1.6 2000/06/19 17:58:13 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -216,7 +216,17 @@ if2_main (int argc, char *const argv[]) int main (int argc, char *const argv[]) { - return (if2_main(argc, argv)); + int retval = 1; + + try { + retval = if2_main(argc, argv); + } catch (exception e) { + cerr << "Exception: " << e.what() << endl; + } catch (...) { + cerr << "Unknown exception" << endl; + } + + return (retval); } #endif