Improve Syntax Error Messages and Fix Comments #29
|
@ -15,10 +15,14 @@ fn kym_handle_errors(info: kym.ErrorInfo) void {
|
||||||
|
|
||||||
var remaining_frames = info.frames.len;
|
var remaining_frames = info.frames.len;
|
||||||
|
|
||||||
while (remaining_frames != 0) {
|
if (remaining_frames != 0) {
|
||||||
remaining_frames -= 1;
|
app.log_fail("stack trace:");
|
||||||
|
|
||||||
app.log_fail(info.frames[remaining_frames].name);
|
while (remaining_frames != 0) {
|
||||||
|
remaining_frames -= 1;
|
||||||
|
|
||||||
|
app.log_fail(info.frames[remaining_frames].name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue