Use exit() instead of std::abort() on fatal error
This commit is contained in:
parent
82a618689b
commit
fbfc14bdf9
|
@ -1,4 +1,5 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef NO_GRAPHICAL_DIALOG
|
#ifndef NO_GRAPHICAL_DIALOG
|
||||||
#include <boxer/boxer.h>
|
#include <boxer/boxer.h>
|
||||||
|
@ -14,7 +15,7 @@ void showError(std::string message, std::string titleMessage, bool fatal = true)
|
||||||
std::cerr << ": " << message << std::endl;
|
std::cerr << ": " << message << std::endl;
|
||||||
|
|
||||||
if (fatal) {
|
if (fatal) {
|
||||||
std::abort();
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue