diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rwxr-xr-x | bin/send-comments | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 66a1b69c3..2cef435f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Response templates can be triggered by external status code. #2048 - Cobrand hook for adding extra areas to MAPIT_WHITELIST/_TYPES. #2049 - Enable conversion from EPSG:27700 when fetching over Open311 #2028 + - send-comments warns about errors when called with --verbose #2091 - Front end improvements: - Improve questionnaire process. #1939 #1998 - Increase size of "sub map links" (hide pins, permalink, etc) #2003 #2056 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; + } } } } |