diff options
| author | ruki <[email protected]> | 2019-10-24 00:51:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-10-23 23:10:41 +0800 |
| commit | e5f1534779029d20e2cb3f1d92405f7d88a976e0 (patch) | |
| tree | b3ee8124e86cc554b9c71db8baa02a3c51e16a1a | |
| parent | ea226a7070a0f771a9dcaf6b192c885cf30ce5e1 (diff) | |
remove repeat error tips
| -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 |
