浏览代码

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

Tianon Gravi 8 年之前
父节点
当前提交
c390af36ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 $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} //= '';