summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-11 22:36:39 +0800
committerruki <[email protected]>2018-04-11 09:39:58 +0800
commita193fb96aa44c2ba32b18557fabd7d7694ee41eb (patch)
treecf1b53816b123762d64d7264c56ad2c827f97466 /xmake/core/base/interpreter.lua
parent4b9de4cb6a555c80be771fad26fe4c00ac3f4e2e (diff)
improve interpreter tips
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index ea5dfcd96..60e6f9cc7 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -497,7 +497,7 @@ function interpreter:_make(scope_kind, remove_repeat, enable_filter)
-- empty scope?
if not scopes or not scopes._ROOT then
- return nil, string.format("the scope %s() is empty!", scope_kind)
+ os.raise("the scope %s() is empty!", scope_kind)
end
-- make results
@@ -682,7 +682,7 @@ function interpreter:load(file, scope_kind, remove_repeat, enable_filter)
-- bind public scope
setfenv(script, self._PUBLIC)
- -- done interpreter
+ -- do interpreter
local ok, errors = xpcall(script, interpreter._traceback)
if not ok then
return nil, errors