From fbfc14bdf918823192217b66f05cc2667e6a7517 Mon Sep 17 00:00:00 2001 From: Epicalert Date: Sun, 4 Jul 2021 03:23:00 +0800 Subject: [PATCH] Use exit() instead of std::abort() on fatal error --- src/error.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error.cpp b/src/error.cpp index 55c73e0..cc025aa 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -1,4 +1,5 @@ #include +#include #ifndef NO_GRAPHICAL_DIALOG #include @@ -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); } }