Some optimizations

I wish there was a cleaner way of doing this
This commit is contained in:
Ne_Eo
2024-10-18 02:50:41 +02:00
parent 2b81220c15
commit 2bfc58ccb0
22 changed files with 75 additions and 72 deletions
@@ -20,10 +20,10 @@ class CrashHandler {
public static function onUncaughtError(e:UncaughtErrorEvent) {
var m:String = e.error;
if (Std.isOfType(e.error, Error)) {
var err = cast(e.error, Error);
var err:Error = cast e.error;
m = '${err.message}';
} else if (Std.isOfType(e.error, ErrorEvent)) {
var err = cast(e.error, ErrorEvent);
var err:ErrorEvent = cast e.error;
m = '${err.text}';
}
var stack = CallStack.exceptionStack();