From 74d90fe6d1d7a066bf1f74e05d13a1cc3a22239b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 26 Sep 2018 11:42:43 +0200 Subject: [PATCH] SelfTest: Fehlermeldung beim E-Mail-Versand an den Task-Server hochreichen --- SL/BackgroundJob/SelfTest.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/BackgroundJob/SelfTest.pm b/SL/BackgroundJob/SelfTest.pm index bb624673b..10438644c 100644 --- a/SL/BackgroundJob/SelfTest.pm +++ b/SL/BackgroundJob/SelfTest.pm @@ -134,7 +134,9 @@ sub _send_email { $mail->{content_type} = $content_type; $mail->{message} = $$output; - $mail->send; + my $err = $mail->send; + $self->add_errors('Mailer error #1', $err) if $err; + } sub _prepare_report { -- 2.20.1