diff options
| -rw-r--r-- | xmake/core/main.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 3d305a345..7c0c75f3f 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -49,11 +49,9 @@ local menu = -- the tasks: xmake [task] , function () local tasks = task.tasks() or {} - local ok, protasks_or_errors = pcall(project.tasks) + local ok, project_tasks = pcall(project.tasks) if ok then - table.join2(tasks, protasks_or_errors) - else - utils.cprint("${dim}%s", protasks_or_errors) + table.join2(tasks, project_tasks) end return task.menu(tasks) end |
