add better error handling to main()

This commit is contained in:
Lion Kortlepel
2024-09-23 21:58:27 +02:00
parent 4bedfc8e96
commit 97f58dd413
3 changed files with 13 additions and 39 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void fatal(const std::string& toPrint) {
std::cout << Print;
addToLog(Print);
std::this_thread::sleep_for(std::chrono::seconds(5));
_Exit(-1);
std::exit(1);
}
void except(const std::string& toPrint) {
std::string Print = getDate() + "[EXCEP] " + toPrint + "\n";