]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/bootstrap.cxx
Fix line endings
[flightgear.git] / src / Main / bootstrap.cxx
index 4f0f53c7cf55409ffa6ab16d511dae40cee25459..78f34101128a1c50e7e1d1b59560ba4f75e9efaa 100644 (file)
@@ -30,6 +30,7 @@
 #  include <signal.h>
 #endif
 
+#include <errno.h>
 #include <stdlib.h>
 #include <stdio.h>
 
@@ -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;