From: mfranz Date: Thu, 22 Dec 2005 23:32:23 +0000 (+0000) Subject: no more "Aborting ...\nPossible cause: Success" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a67cb7d6fbb05f763b8d479b9bb516b58be044be;p=flightgear.git no more "Aborting ...\nPossible cause: Success" --- diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 4f0f53c7c..78f341011 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -30,6 +30,7 @@ # include #endif +#include #include #include @@ -205,7 +206,8 @@ int main ( int argc, char **argv ) { } catch (...) { cerr << "Unknown exception in the main loop. Aborting..." << endl; - perror("Possible cause"); + if (errno) + perror("Possible cause"); } return 0;