remove a no-op regex munging on callstacks
It seems to have been introduced in commit 46889593da
back in Jan, and I
was using it to summarize multiple failing tests. However, it's not used
in that scenario anymore (and anyway it seems wasteful to compute the
stack for each failing test and then throw it all away).
This commit is contained in:
parent
f6ee78f824
commit
b38f172ceb
2
live.lua
2
live.lua
|
@ -373,7 +373,7 @@ end
|
||||||
-- return nil to continue the event loop, non-nil to quit
|
-- return nil to continue the event loop, non-nil to quit
|
||||||
function live.handle_error(err)
|
function live.handle_error(err)
|
||||||
Mode = 'error'
|
Mode = 'error'
|
||||||
local stack_trace = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2):gsub('\n[^\n]+$', '')
|
local stack_trace = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2)
|
||||||
live.send_run_time_error_to_driver(stack_trace)
|
live.send_run_time_error_to_driver(stack_trace)
|
||||||
Error_message = 'Something is wrong. Sorry!\n\n'..stack_trace..'\n\n'..
|
Error_message = 'Something is wrong. Sorry!\n\n'..stack_trace..'\n\n'..
|
||||||
"(Note: function names above don't include outer tables. So functions like on.draw might show up as just 'draw', etc.)\n\n"..
|
"(Note: function names above don't include outer tables. So functions like on.draw might show up as just 'draw', etc.)\n\n"..
|
||||||
|
|
Loading…
Reference in New Issue