Changed error's stacktrace to not include lurker

This commit is contained in:
rxi
2014-03-14 13:35:04 +00:00
parent fdd82e83b5
commit a21bb75cbf

View File

@@ -95,7 +95,8 @@ function lurker.onerror(e, nostacktrace)
end
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 colors = { 0xFF1E1E2C, 0xFFF0A3A3, 0xFF92B5B0, 0xFF66666A, 0xFFCDCDCD }
love.graphics.reset()