summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.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/project/project.lua
parent4b9de4cb6a555c80be771fad26fe4c00ac3f4e2e (diff)
improve interpreter tips
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index e5785a645..ff7108411 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -362,7 +362,7 @@ function project._load_scope(scope_kind, remove_repeat, enable_filter)
-- load targets
local results, errors = interp:load(project.file(), scope_kind, remove_repeat, enable_filter)
if not results then
- return nil, errors
+ return nil, (errors or "load project file failed!")
end
-- leave the project directory
@@ -664,7 +664,7 @@ function project.tasks()
-- load the tasks from the the project file
local results, errors = project._load_scope("task", true, true)
if not results then
- os.raise(errors)
+ os.raise(errors or "load project tasks failed!")
end
-- bind tasks for menu with an sandbox instance