From ddffb2152b6d03900cb24b086ff933f7b4d58997 Mon Sep 17 00:00:00 2001 From: actboy168 Date: Fri, 15 Mar 2024 19:54:30 +0800 Subject: [PATCH] improve error messages --- scripts/sandbox.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sandbox.lua b/scripts/sandbox.lua index 42ea512..a299616 100644 --- a/scripts/sandbox.lua +++ b/scripts/sandbox.lua @@ -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)