From 7c71e0528f0dd69145bf1b751c96f3ec3b285ea9 Mon Sep 17 00:00:00 2001 From: kayomn Date: Sat, 22 Jul 2023 14:46:35 +0100 Subject: [PATCH] Add line delimiter between error messages and traces --- source/ona/ona.zig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/ona/ona.zig b/source/ona/ona.zig index 1cd6af5..35a0445 100644 --- a/source/ona/ona.zig +++ b/source/ona/ona.zig @@ -15,10 +15,14 @@ fn kym_handle_errors(info: kym.ErrorInfo) void { var remaining_frames = info.frames.len; - while (remaining_frames != 0) { - remaining_frames -= 1; + if (remaining_frames != 0) { + 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); + } } }