]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Added check for no tasks returned by 'arc tasks'
authorDavid Reuss <david@upsys.dk>
Thu, 11 Oct 2012 19:39:35 +0000 (12:39 -0700)
committerepriestley <git@epriestley.com>
Thu, 11 Oct 2012 19:40:43 +0000 (12:40 -0700)
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

index 049dc294837fb68612a9c7c9539fb0316589e8bb..469f78948455ebabd3df05d60cb734a0f5788654 100644 (file)
@@ -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();