catch string exceptions
This commit is contained in:
parent
00ba5a853e
commit
d33b6da077
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue