Better exception stack printing
This commit is contained in:
@@ -71,8 +71,10 @@ class Kiss {
|
|||||||
Sys.exit(1);
|
Sys.exit(1);
|
||||||
return null;
|
return null;
|
||||||
} catch (err:Exception) {
|
} catch (err:Exception) {
|
||||||
trace(err.stack);
|
Prelude.print("Error: " + err.message);
|
||||||
throw err; // Re-throw haxe exceptions for precise stacks
|
Prelude.print(err.stack.toString());
|
||||||
|
Sys.exit(1);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user