summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-24 00:46:13 +0800
committerruki <[email protected]>2019-10-23 22:37:19 +0800
commitea226a7070a0f771a9dcaf6b192c885cf30ce5e1 (patch)
treecf61ef71dad3697b7130da96b781d7168ef29ed5
parent7cbd5c62502bc2c0a8a254db2e7990486a5bbc78 (diff)
update error tips
-rw-r--r--xmake/core/base/interpreter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 7aa03a2ca..12dc62fa4 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -248,7 +248,7 @@ function interpreter:_api_register_xxx_values(scope_kind, action, apifunc, ...)
-- clear the current scope if be not belong to the current scope kind
if scopes._CURRENT and scopes._CURRENT_KIND ~= scope_kind then
- os.raise("%s() cannot be called in %s(), because it's belong to %s scope!", apiname, scopes._CURRENT_KIND, scope_kind == "__rootkind" and "root" or scope_kind)
+ os.raise("%s() cannot be called in %s(), please move it to the %s scope!", apiname, scopes._CURRENT_KIND, scope_kind == "__rootkind" and "root" or scope_kind)
scopes._CURRENT = nil
end