diff --git a/source/funkin/util/logging/CrashHandler.hx b/source/funkin/util/logging/CrashHandler.hx index 178ef8f9e..f7c64c465 100644 --- a/source/funkin/util/logging/CrashHandler.hx +++ b/source/funkin/util/logging/CrashHandler.hx @@ -81,6 +81,11 @@ class CrashHandler trace('Message: $message'); } + + #if sys + // Exit the game. Since it threw an error, we use a non-zero exit code. + Sys.exit(1); + #end } static function displayError(error:UncaughtErrorEvent):Void