From 909cfa716bee8e0d5e6f50096913d86cfd24c656 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sun, 31 Aug 2025 21:01:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(shell):=20=E6=94=B9=E8=BF=9B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=94=99=E8=AF=AF=E4=B8=8A=E4=B8=8B=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在shell运行程序出错时,现在会显示更详细的错误信息,帮助用户理解错误来源 --- data/computercraft/lua/rom/programs/shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/computercraft/lua/rom/programs/shell.lua b/data/computercraft/lua/rom/programs/shell.lua index a27bd1a..ec84dcc 100644 --- a/data/computercraft/lua/rom/programs/shell.lua +++ b/data/computercraft/lua/rom/programs/shell.lua @@ -91,7 +91,7 @@ while true do history[#history+1] = text local ok, err = shell.run(text) if not ok and err then - io.stderr:write(err, "\n") + io.stderr:write("Application has a error when running and system has stop it. Error:\n", err, "\n") end end end