From 55bba313fe23736efa7c7489d1591fa3bc59543a Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 22 Mar 2021 19:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=8A=93=E4=B8=8D=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 73ae6dd8..bc6726c2 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -356,6 +356,8 @@ local function secondLoopThread() repeat yield()until mainLoop() end function love.errorhandler(msg) + if not msg then msg="Unknown error" end + --Generate error message local err={"Error:"..msg} local c=2 @@ -426,7 +428,7 @@ function love.errorhandler(msg) setFont(40)gc.printf(errorMsg,100,160,SCR.w0-100) setFont(20) gc_print(SYSTEM.."-"..VERSION_NAME.." scene:"..(SCN and SCN.cur or"NULL"),100,660) - gc.printf(err[1],100,360,1260-626) + gc.printf(err[1],100,360,1260-100) gc_print("TRACEBACK",100,450) for i=4,#err-2 do gc_print(err[i],100,400+20*i)