remove a no-op regex munging on callstacks

Port of a fix "upstream": commit b38f172ceb in template-live-editor.
This commit is contained in:
Kartik K. Agaram 2023-11-10 07:24:46 -08:00
parent aa9a0b0b15
commit 8b70258978
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ function love.run()
end end
function handle_error(err) function handle_error(err)
Error_message = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2):gsub('\n[^\n]+$', '') Error_message = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2)
print(Error_message) print(Error_message)
if Current_app == 'run' then if Current_app == 'run' then
Settings.current_app = 'source' Settings.current_app = 'source'