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:
Kartik K. Agaram 2023-11-09 21:16:13 -08:00
parent f6ee78f824
commit b38f172ceb
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ end
-- return nil to continue the event loop, non-nil to quit
function live.handle_error(err)
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)
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"..