From: David Reuss Date: Thu, 11 Oct 2012 19:39:35 +0000 (-0700) Subject: Added check for no tasks returned by 'arc tasks' X-Git-Tag: conduit-6~90 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a63db7cd6eb32ccbf3ab4c697d57ff4023daf3d6;p=arcanist.git 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 --- 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();