From a63db7cd6eb32ccbf3ab4c697d57ff4023daf3d6 Mon Sep 17 00:00:00 2001 From: David Reuss Date: Thu, 11 Oct 2012 12:39:35 -0700 Subject: [PATCH] Added check for no tasks returned by 'arc tasks' Test Plan: A lot of spew before. Not so much now. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3681 --- src/workflow/ArcanistTasksWorkflow.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/workflow/ArcanistTasksWorkflow.php b/src/workflow/ArcanistTasksWorkflow.php index 049dc294..469f7894 100644 --- a/src/workflow/ArcanistTasksWorkflow.php +++ b/src/workflow/ArcanistTasksWorkflow.php @@ -92,6 +92,11 @@ EOTEXT $order, $limit); + if (!$this->tasks) { + echo "No tasks found.\n"; + return 0; + } + $task_rows = array(); foreach ($this->tasks as $task) { $output = array();