mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 02:52:18 +00:00
Changed error's stacktrace to not include lurker
This commit is contained in:
@@ -95,7 +95,8 @@ function lurker.onerror(e, nostacktrace)
|
|||||||
end
|
end
|
||||||
love.update = lurker.update
|
love.update = lurker.update
|
||||||
|
|
||||||
local stacktrace = nostacktrace and "" or debug.traceback():gsub("\t", "")
|
local stacktrace = nostacktrace and "" or
|
||||||
|
lume.trim((debug.traceback("", 2):gsub("\t", "")))
|
||||||
local msg = lume.format("{1}\n\n{2}", {e, stacktrace})
|
local msg = lume.format("{1}\n\n{2}", {e, stacktrace})
|
||||||
local colors = { 0xFF1E1E2C, 0xFFF0A3A3, 0xFF92B5B0, 0xFF66666A, 0xFFCDCDCD }
|
local colors = { 0xFF1E1E2C, 0xFFF0A3A3, 0xFF92B5B0, 0xFF66666A, 0xFFCDCDCD }
|
||||||
love.graphics.reset()
|
love.graphics.reset()
|
||||||
|
Reference in New Issue
Block a user