Skip to content

Commit cc00609

Browse files
committed
Added message when no branchers are listed
1 parent b54e54f commit cc00609

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/Commands/ListBrancherNodes.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ public function handle()
4646
return Command::SUCCESS;
4747
}
4848

49+
if (count($branchers) === 0) {
50+
$this->line('No Brancher nodes found for ' . $originHypernode);
51+
return Command::SUCCESS;
52+
}
53+
4954
$headers = array_keys($branchers[array_key_first($branchers)]);
5055

5156
$tableData = [];

0 commit comments

Comments
 (0)