diff options
Diffstat (limited to 'perllib/FixMyStreet/SendReport/EastHants.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/EastHants.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/EastHants.pm b/perllib/FixMyStreet/SendReport/EastHants.pm index 61c38e591..681a9d4c4 100644 --- a/perllib/FixMyStreet/SendReport/EastHants.pm +++ b/perllib/FixMyStreet/SendReport/EastHants.pm @@ -32,7 +32,7 @@ EOF sub send { return if mySociety::Config::get('STAGING_SITE'); - my ( $row, $h, $to, $template, $recips, $nomail ) = @_; + my ( $self, $row, $h, $to, $template, $recips, $nomail ) = @_; # FIXME: should not recreate this each time my $eh_service; @@ -53,7 +53,9 @@ sub send { } otherwise { my $e = shift; print "Caught an error: $e\n"; + $self->error( "Error sending to East Hants: $e" ); }; + $self->success( !$return ); return $return; } |