clean up a debug print
This commit is contained in:
parent
a6738b49c4
commit
f86ebf6247
1
app.lua
1
app.lua
|
@ -63,7 +63,6 @@ end
|
||||||
-- This function cleans out this cruft from error callstacks.
|
-- This function cleans out this cruft from error callstacks.
|
||||||
function clean_up_callstack(callstack)
|
function clean_up_callstack(callstack)
|
||||||
local frames = {}
|
local frames = {}
|
||||||
print(callstack)
|
|
||||||
for frame in string.gmatch(callstack, '[^\n]+\n*') do
|
for frame in string.gmatch(callstack, '[^\n]+\n*') do
|
||||||
local line = frame:gsub('^%s*(.-)\n?$', '%1')
|
local line = frame:gsub('^%s*(.-)\n?$', '%1')
|
||||||
local filename, rest = line:match('([^:]*):(.*)')
|
local filename, rest = line:match('([^:]*):(.*)')
|
||||||
|
|
Loading…
Reference in New Issue