no more "Aborting ...\nPossible cause: Success"
This commit is contained in:
parent
faf91ae9e9
commit
a67cb7d6fb
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue