Skip to content

Commit

Permalink
improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Mar 15, 2024
1 parent ffa2770 commit ddffb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sandbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ return function (c)
f:close()
return load(str, "@"..path, "t", ENV or env)
end
return nil, err
return nil, "Fail to open the file: " .. err
end
local function sandbox_openfile(name, mode)
return openfile(absolute(name), mode)
Expand Down

0 comments on commit ddffb21

Please sign in to comment.