aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-comments
diff options
context:
space:
mode:
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-xbin/send-comments6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/send-comments b/bin/send-comments
index 333bc2a00..ce4318f71 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -153,8 +153,12 @@ while ( my $body = $bodies->next ) {
$comment->update( {
send_fail_count => $comment->send_fail_count + 1,
send_fail_timestamp => \'current_timestamp',
- send_fail_reason => 'Failed to post over Open311',
+ send_fail_reason => "Failed to post over Open311\n\n" . $o->error,
} );
+
+ if ( $verbose && $o->error ) {
+ warn $o->error;
+ }
}
}
}