1
0
Эх сурвалжийг харах

Add explicit error handling after we update a description (in case our short description is too long or something similar)

Tianon Gravi 11 жил өмнө
parent
commit
d7ee163fee
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      push.pl

+ 4 - 0
push.pl

@@ -162,4 +162,8 @@ while (my $repo = shift) { # '/_/hylang', '/u/tianon/perl', etc
 	
 	$repoTx = $ua->post($repoUrl => { Referer => $repoUrl } => form => $settingsBits);
 	die 'post to ' . $repoUrl . ' failed' unless $repoTx->success;
+	
+	if (my $alert = $repoTx->res->dom('.alert-error')) {
+		die 'update to ' . $repoUrl . ' failed:' . "\n" . $alert->all_text;
+	}
 }