fix(lua): don't remove first char of non-file stacktrace source (#37008)

This commit is contained in:
zeertzjq
2025-12-18 08:09:16 +08:00
parent df9452ea9e
commit 275c769f01
4 changed files with 4 additions and 4 deletions

View File

@@ -1323,7 +1323,7 @@ local function traceback()
if not info then
break
end
local msg = (' %s:%s'):format(info.source:sub(2), info.currentline)
local msg = (' %s:%s'):format(info.source:gsub('^@', ''), info.currentline)
table.insert(backtrace, msg)
level = level + 1
end