文件保存或json编解码失败时会有代码位置指示消息

This commit is contained in:
MrZ626
2021-06-19 14:24:21 +08:00
parent 3b675ad8ed
commit b0c71e0f6c
3 changed files with 19 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ function FILE.save(data,name,mode)
F:flush()F:close()
if not success then
MES.new('error',text.saveError..(mes or"unknown error"))
MES.new(false,debug.traceback())
MES.traceback(1)
end
return success
end