X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fif-1.cpp;h=07359a0323c88e21e6c1f7dfa0ba1b9daf84134a;hp=f85a269176bcfd981eb369adbffca8beca75b4e2;hb=207332eec9416d299766abb697312cfd27eb890e;hpb=5cf6874680f80d238bf34535d711dc223813f951 diff --git a/src/if-1.cpp b/src/if-1.cpp index f85a269..07359a0 100644 --- a/src/if-1.cpp +++ b/src/if-1.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: if-1.cpp,v 1.7 2000/06/18 10:27:11 kevin Exp $ +** $Id: if-1.cpp,v 1.8 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 @@ -189,7 +189,17 @@ if1_main (int argc, char *const argv[]) int main (int argc, char *const argv[]) { - return (if1_main(argc, argv)); + int retval = 1; + + try { + retval = if1_main(argc, argv); + } catch (exception e) { + cerr << "Exception: " << e.what() << endl; + } catch (...) { + cerr << "Unknown exception" << endl; + } + + return (retval); } #endif