From e379656333caefe28914c6bc0cdfe9a80b1ecd0e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 15 Nov 2020 13:15:34 -0500 Subject: Updated MBS --- .mbs/lib/stack_trace.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.mbs/lib/stack_trace.lua') diff --git a/.mbs/lib/stack_trace.lua b/.mbs/lib/stack_trace.lua index 7674813..2c94dcd 100644 --- a/.mbs/lib/stack_trace.lua +++ b/.mbs/lib/stack_trace.lua @@ -5,7 +5,7 @@ local function traceback(x) -- Attempt to detect error() and error("xyz", 0). -- This probably means they're erroring the program intentionally and so we -- shouldn't display anything. - if x == nil or (type(x) == "string" and not x:find(":%d+:")) then + if x == nil or type(x) == "string" and not x:find(":%d+:") then return x end @@ -65,7 +65,7 @@ local function xpcall_with(fn) -- Find the position where the stack traceback actually starts local trace_starts for i = #trace, 1, -1 do - if trace[i] == "stack traceback:" then trace_starts = i; break end + if trace[i] == "stack traceback:" then trace_starts = i break end end -- If this traceback is more than 15 elements long, keep the first 9, last 5 -- cgit v1.2.3