Make it clear failures to get the initial API are simply warnings and will be skipped

This commit is contained in:
Tianon Gravi 2017-11-16 11:35:27 -08:00
parent fd76d8254d
commit c390af36ae
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ while (my $repo = shift) { # '/library/hylang', '/tianon/perl', etc
my $repoUrl = 'https://hub.docker.com/v2/repositories' . $repo . '/';
my $repoTx = $ua->get($repoUrl => $authorizationHeader);
warn 'failed to get: ' . $repoUrl and next unless $repoTx->success;
warn 'warning: failed to get: ' . $repoUrl . ' (skipping)' and next unless $repoTx->success;
my $repoDetails = $repoTx->res->json;
$repoDetails->{description} //= '';