projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r102: fixed mpi bug
[ctsim.git]
/
src
/
ifinfo.cpp
diff --git
a/src/ifinfo.cpp
b/src/ifinfo.cpp
index f0a475d8fcd84442c469f22b43d4e8ab2d7977c4..c911aa5c80948c37d7535b6dddf0a95244e9076c 100644
(file)
--- a/
src/ifinfo.cpp
+++ b/
src/ifinfo.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ifinfo.cpp,v 1.
8 2000/06/18 10:27:11
kevin Exp $
+** $Id: ifinfo.cpp,v 1.
9 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
**
** 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
@@
-236,6
+236,16
@@
ifinfo_main (int argc, char *const argv[])
int
main (int argc, char *const argv[])
{
int
main (int argc, char *const argv[])
{
- return (ifinfo_main(argc, argv));
+ int retval = 1;
+
+ try {
+ retval = ifinfo_main(argc, argv);
+ } catch (exception e) {
+ cerr << "Exception: " << e.what() << endl;
+ } catch (...) {
+ cerr << "Unknown exception" << endl;
+ }
+
+ return (retval);
}
#endif
}
#endif