# include <signal.h>
#endif
+#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
} catch (...) {
cerr << "Unknown exception in the main loop. Aborting..." << endl;
- perror("Possible cause");
+ if (errno)
+ perror("Possible cause");
}
return 0;