summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-23 21:19:38 +0800
committerruki <[email protected]>2016-02-23 21:19:38 +0800
commitbd2b7e61c8053041aae4f54537641529d6c10d49 (patch)
tree1e34a5f3c4ca553ae116882b2b2f84be90609577 /xmake/core/base/interpreter.lua
parent133ff2563a68b8265fafedb006bf07fce5ae280f (diff)
load tasks
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 6b5abf568..e415bd590 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -347,7 +347,11 @@ function interpreter._make(self, scope_kind, remove_repeat, enable_filter)
-- the scopes
local scopes = self._PRIVATE._SCOPES
- assert(scopes and scopes._ROOT)
+
+ -- empty scope?
+ if not scopes or not scopes._ROOT then
+ return nil, string.format("the scope %s() is empty!", scope_kind)
+ end
-- make results
local results = {}