Better exception stack printing

This commit is contained in:
2020-12-31 13:48:27 -07:00
parent 404780e89e
commit e66f2a442f

View File

@@ -71,8 +71,10 @@ class Kiss {
Sys.exit(1);
return null;
} catch (err:Exception) {
trace(err.stack);
throw err; // Re-throw haxe exceptions for precise stacks
Prelude.print("Error: " + err.message);
Prelude.print(err.stack.toString());
Sys.exit(1);
return null;
}
}