error handlingfix

This commit is contained in:
osmarks 2018-08-15 19:01:43 +01:00
parent c360c72f83
commit be5429d6b4
1 changed files with 2 additions and 1 deletions

3
IO.lua
View File

@ -58,4 +58,5 @@ local function main()
end
local ok, err = pcall(main)
print(w.errors.format(err))
if type(err) == "table" then err = w.errors.format(err) end
print(err)