[skip ci] error formatting tweak

This commit is contained in:
Brahim Hadriche committed 2025-05-16 11:59:02 -04:00
1 parent 89ec969c40
commit beeb21283d
1 file changed
+8 -1
+8 -1
View File
@@ -14,8 +14,15 @@ namespace ErrorUtils
result = `${error.message} (0x${StrI(error.number, 16)}). backtrace:`
for i = error.backtrace.count() - 1 to 0 step -1
backtrace = error.backtrace[i]
result += `\n ${backtrace.function} @${backtrace.filename}:${backtrace.line_number}\n`
result += `\n ${backtrace.function} @${backtrace.filename}:${backtrace.line_number}`
end for
#if DEBUG
' make paths start with pkg:/ so that they can be source mapped
' to the original source files
result = result.replace("playletlib:/", "pkg:/")
#end if
return result
end if