mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
fix(shell): 改进错误信息显示,增加错误上下文
在shell运行程序出错时,现在会显示更详细的错误信息,帮助用户理解错误来源
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user