Skip to content

Commit

Permalink
fix(get-tasks): print msg if no tasks found
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 committed Feb 1, 2019
1 parent 896d99e commit f64d59c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion garden-service/src/commands/get/get-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ export class GetTasksCommand extends Command<GetTasksArguments> {
})
}

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 }

Expand Down

0 comments on commit f64d59c

Please sign in to comment.