Add explicit error handling after we update a description (in case our short description is too long or something similar)
This commit is contained in:
parent
90ee9ce81a
commit
d7ee163fee
4
push.pl
4
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue