Fix: Simplify traceback line parsing pattern

This commit is contained in:
Engineer Smith
2025-11-21 17:41:18 +00:00
committed by GitHub
parent 50aec7e10a
commit d8ec2d884f
+1 -5
View File
@@ -273,12 +273,8 @@ function love.errorhandler(msg)
end
table.insert(err, "\n")
if trace:sub(-1) ~= "\n" then
trace = trace .. "\n"
end
for l in trace:gmatch("(.-)\n") do
for l in trace:gmatch("([^\n]+)") do
if not l:match("boot.lua") then
l = l:gsub("stack traceback:", "Traceback\n")
table.insert(err, l)