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;