From a193fb96aa44c2ba32b18557fabd7d7694ee41eb Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 11 Apr 2018 22:36:39 +0800 Subject: improve interpreter tips --- xmake/core/project/project.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/core/project/project.lua') 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 -- cgit v1.3.1