aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-08-08 12:48:19 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-08-08 12:48:19 +0100
commit8a13627c2cb349a099e3fbfabbaa890805775e65 (patch)
treef21ec9c7182514cb18e822a58bd52a3c04ffe634
parentc4ed22f3d660e140b10a1993906b558a59e5df44 (diff)
Log failure to send email.
-rw-r--r--perllib/FixMyStreet/App.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index ea7d43512..61c703468 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -338,7 +338,8 @@ sub send_email {
$data->{_html_images_} = \@inline_images if @inline_images;
my $email = mySociety::Locale::in_gb_locale { FixMyStreet::Email::construct_email($data) };
- $c->model('EmailSend')->send($email);
+ my $return = $c->model('EmailSend')->send($email);
+ $c->log->error("$return") if !$return;
return $email;
}