Pārlūkot izejas kodu

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

Tianon Gravi 8 gadi atpakaļ
vecāks
revīzija
c390af36ae
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      push.pl

+ 1 - 1
push.pl

@@ -118,7 +118,7 @@ while (my $repo = shift) { # '/library/hylang', '/tianon/perl', etc
 	
 	
 	my $repoUrl = 'https://hub.docker.com/v2/repositories' . $repo . '/';
 	my $repoUrl = 'https://hub.docker.com/v2/repositories' . $repo . '/';
 	my $repoTx = $ua->get($repoUrl => $authorizationHeader);
 	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;
 	my $repoDetails = $repoTx->res->json;
 	$repoDetails->{description} //= '';
 	$repoDetails->{description} //= '';