mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-08-28 13:00:36 +00:00
add better error handling to main()
This commit is contained in:
+1
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user