Exit with fatal error on duplicated instruction code

Instead of causing SIGABRT which is more confusing.
This commit is contained in:
elsid 2024-06-28 22:22:16 +02:00
parent daada262d7
commit 89bb04e8fd
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
4 changed files with 19 additions and 19 deletions

View file

@ -468,7 +468,7 @@ int wrapApplication(int (*innerApplication)(int argc, char* argv[]), int argc, c
#endif
SDL_ShowSimpleMessageBox(0, (std::string(appName) + ": Fatal error").c_str(), e.what(), nullptr);
Log(Debug::Error) << "Error: " << e.what();
Log(Debug::Error) << "Fatal error: " << e.what();
ret = 1;
}