summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-26 11:24:14 +0800
committerOpportunityLiu <[email protected]>2019-07-28 14:45:00 +0800
commit1a1e0c7200d23f53bd1219341bc1dada7b4054a9 (patch)
tree5e8869df94fbb9a6b5a4e268f14c26d939b15a43
parent39bd37f2a46ed9b5e6d02bcf68ecd5597ee85dfa (diff)
fix load nil
-rw-r--r--xmake/core/sandbox/modules/io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/io.lua b/xmake/core/sandbox/modules/io.lua
index c4c1a63c8..e9206bbaa 100644
--- a/xmake/core/sandbox/modules/io.lua
+++ b/xmake/core/sandbox/modules/io.lua
@@ -172,7 +172,7 @@ function sandbox_io.load(filepath, opt)
-- done
local result, errors = io.load(filepath, opt)
- if not result then
+ if errors ~= nil then
raise(errors)
end