From 6313b3d274e73c113fdbdc5ed75fe613d741c6af Mon Sep 17 00:00:00 2001 From: Takase <20792268+takase1121@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:18:16 +0800 Subject: [PATCH] fix: fix differing stacktrace on stdout and file (#1404) * fix(c-bootstrap): produce identical stack traces --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 3294ff3a..f6e980a5 100644 --- a/src/main.c +++ b/src/main.c @@ -239,7 +239,7 @@ init_lua: "end, function(err)\n" " local error_dir\n" " io.stdout:write('Error: '..tostring(err)..'\\n')\n" - " io.stdout:write(debug.traceback(nil, 4)..'\\n')\n" + " io.stdout:write(debug.traceback(nil, 2)..'\\n')\n" " if core and core.on_error then\n" " error_dir=USERDIR\n" " pcall(core.on_error, err)\n"