Add line delimiter between error messages and traces
This commit is contained in:
parent
b311c73c43
commit
7c71e0528f
|
@ -15,11 +15,15 @@ fn kym_handle_errors(info: kym.ErrorInfo) void {
|
||||||
|
|
||||||
var remaining_frames = info.frames.len;
|
var remaining_frames = info.frames.len;
|
||||||
|
|
||||||
|
if (remaining_frames != 0) {
|
||||||
|
app.log_fail("stack trace:");
|
||||||
|
|
||||||
while (remaining_frames != 0) {
|
while (remaining_frames != 0) {
|
||||||
remaining_frames -= 1;
|
remaining_frames -= 1;
|
||||||
|
|
||||||
app.log_fail(info.frames[remaining_frames].name);
|
app.log_fail(info.frames[remaining_frames].name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn kym_log_info(env: *kym.RuntimeEnv) kym.RuntimeError!?*kym.RuntimeRef {
|
fn kym_log_info(env: *kym.RuntimeEnv) kym.RuntimeError!?*kym.RuntimeRef {
|
||||||
|
|
Loading…
Reference in New Issue