diff options
| author | ruki <[email protected]> | 2016-02-23 21:19:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-23 21:19:38 +0800 |
| commit | bd2b7e61c8053041aae4f54537641529d6c10d49 (patch) | |
| tree | 1e34a5f3c4ca553ae116882b2b2f84be90609577 /xmake/core/base/interpreter.lua | |
| parent | 133ff2563a68b8265fafedb006bf07fce5ae280f (diff) | |
load tasks
Diffstat (limited to 'xmake/core/base/interpreter.lua')
| -rw-r--r-- | xmake/core/base/interpreter.lua | 6 |
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 = {} |
