From d7ee163fee82c1307a62c406619896e9e69bd2c9 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 10 Oct 2014 17:22:23 -0600 Subject: [PATCH] Add explicit error handling after we update a description (in case our short description is too long or something similar) --- push.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/push.pl b/push.pl index aff87134..d42c6226 100755 --- a/push.pl +++ b/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; + } }