From f64d59cf272a67c5fed8cd0d861d2709d15a3fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ey=C3=BE=C3=B3r=20Magn=C3=BAsson?= Date: Wed, 16 Jan 2019 11:40:07 +0100 Subject: [PATCH] fix(get-tasks): print msg if no tasks found --- garden-service/src/commands/get/get-tasks.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/garden-service/src/commands/get/get-tasks.ts b/garden-service/src/commands/get/get-tasks.ts index d1ef794acf..686d52226c 100644 --- a/garden-service/src/commands/get/get-tasks.ts +++ b/garden-service/src/commands/get/get-tasks.ts @@ -93,7 +93,11 @@ export class GetTasksCommand extends Command { }) } - log.info(logStr.trim()) + if (taskListing.length > 0) { + log.info(logStr.trim()) + } else { + log.info(`No tasks defined for project ${garden.projectName}`) + } return { result: taskListing }