1
0
Fork 0

catch string exceptions

This commit is contained in:
mfranz 2006-02-23 08:32:27 +00:00
parent 00ba5a853e
commit d33b6da077

View file

@ -204,6 +204,9 @@ int main ( int argc, char **argv ) {
if (!t.getOrigin().empty())
cerr << " (received from " << t.getOrigin() << ')' << endl;
} catch (string &s) {
cerr << "Fatal error: " << s << endl;
} catch (...) {
cerr << "Unknown exception in the main loop. Aborting..." << endl;
if (errno)