Explorar el Código

Let "push.pl" fail when updates fail

Tianon Gravi hace 2 años
padre
commit
bac0d1d2c9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      push.pl

+ 1 - 1
push.pl

@@ -233,5 +233,5 @@ while (my $repo = shift) { # 'library/hylang', 'tianon/perl', etc
 			description => $hubShort,
 			full_description => $hubLong,
 		});
-	warn 'patch to ' . $repoUrl . ' failed: ' . $repoPatch->res->text and next unless $repoPatch->res->is_success;
+	die 'patch to ' . $repoUrl . ' failed: ' . $repoPatch->res->text unless $repoPatch->res->is_success;
 }