Use exit() instead of std::abort() on fatal error

This commit is contained in:
Epicalert 2021-07-04 03:23:00 +08:00
parent 82a618689b
commit fbfc14bdf9
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD

View file

@ -1,4 +1,5 @@
#include <iostream>
#include <stdlib.h>
#ifndef NO_GRAPHICAL_DIALOG
#include <boxer/boxer.h>
@ -14,7 +15,7 @@ void showError(std::string message, std::string titleMessage, bool fatal = true)
std::cerr << ": " << message << std::endl;
if (fatal) {
std::abort();
exit(EXIT_FAILURE);
}
}