fix(shell): 改进错误信息显示,增加错误上下文

在shell运行程序出错时,现在会显示更详细的错误信息,帮助用户理解错误来源
This commit is contained in:
2025-08-31 21:01:16 +08:00
parent c9f9759da9
commit 909cfa716b

View File

@@ -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