Skip to content

Commit

Permalink
Displays that logs are empty when they are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Aug 3, 2021
1 parent 52604a4 commit 998da4d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/Commands/Concerns/InteractsWithLogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ protected function showLogs($type)
{
$this->step('Retrieving the latest logs');

$logs = $this->forge->logs($this->currentServer()->id, $type);
$logs = $this->forge->logs($this->currentServer()->id, $type)->content;

$this->displayLogs($logs->content);
abort_if(empty($logs), 1, 'The requested logs could not be found or they are empty.');

$this->newLine();

$this->displayLogs($logs);

$this->newLine();
}

/**
Expand Down

0 comments on commit 998da4d

Please sign in to comment.