Skip to content

Commit

Permalink
chore(updcmd): show error msg if fetch latest release failed
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 28, 2018
1 parent 973f42c commit 2f16c43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function execute()
$release = \json_decode($release);

if (\JSON_ERROR_NONE !== \json_last_error() || empty($release->assets[0])) {
$io->bgRed('Error getting latest release', true);
$io->bgRed('Problem getting latest release', true);
$io->red($release->message ?? 'Unknown error', true);

return;
}
Expand Down

0 comments on commit 2f16c43

Please sign in to comment.