From: Thomas Geymayer Date: Mon, 4 Mar 2013 22:13:36 +0000 (+0100) Subject: Report std::exception in main loop X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3579a4404abd7e0e026a2373ace55410855ffe80;p=flightgear.git Report std::exception in main loop --- diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index f305b345b..73fb6fd5e 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -252,11 +252,14 @@ int main ( int argc, char **argv ) if (std::strlen(t.getOrigin()) != 0) cerr << " (received from " << t.getOrigin() << ')' << endl; + } catch (const std::exception &e ) { + cerr << "Fatal error (std::exception): " << e.what() << endl; + } catch (const std::string &s) { - cerr << "Fatal error: " << s << endl; + cerr << "Fatal error (std::string): " << s << endl; } catch (const char *s) { - cerr << "Fatal error: " << s << endl; + cerr << "Fatal error (const char*): " << s << endl; } catch (...) { cerr << "Unknown exception in the main loop. Aborting..." << endl;