aboutsummaryrefslogtreecommitdiff
path: root/.mbs/lib/stack_trace.lua
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-11-15 13:15:34 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-11-15 13:15:34 -0500
commite379656333caefe28914c6bc0cdfe9a80b1ecd0e (patch)
treedbc8ebef215d90b4d6285530a31dc1bd4ae0f15f /.mbs/lib/stack_trace.lua
parenta405ec93546b95c2369ec9069b3616944d785198 (diff)
downloadbits-UI-e379656333caefe28914c6bc0cdfe9a80b1ecd0e.tar.gz
bits-UI-e379656333caefe28914c6bc0cdfe9a80b1ecd0e.tar.bz2
bits-UI-e379656333caefe28914c6bc0cdfe9a80b1ecd0e.zip
Updated MBS
Diffstat (limited to '.mbs/lib/stack_trace.lua')
-rw-r--r--.mbs/lib/stack_trace.lua4
1 files changed, 2 insertions, 2 deletions
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