From 719fd0838e9631d7397d4b2ca4303dd85c4b26a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 1 Jan 2021 18:14:19 +0100 Subject: [PATCH] =?utf8?q?CTR:=20Wirklich=20mit=20"die",=20die=20Fehler=20?= =?utf8?q?werfen.=20Einr=C3=BCckung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/BackgroundJob/ConvertTimeRecordings.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/BackgroundJob/ConvertTimeRecordings.pm b/SL/BackgroundJob/ConvertTimeRecordings.pm index 438efbbe9..8f6a32949 100644 --- a/SL/BackgroundJob/ConvertTimeRecordings.pm +++ b/SL/BackgroundJob/ConvertTimeRecordings.pm @@ -77,7 +77,7 @@ sub run { })) { $::lxdebug->message(LXDebug->WARN(), "ConvertTimeRecordings: saving delivery order failed for time recording ids " . join ', ', map { $_->id } @{$time_recordings_by_customer_id{$customer_id}}); - push @{ $self->{job_errors} }, "ConvertTimeRecordings: saving delivery order failed for time recording ids " . join ', ', map { $_->id } @{$time_recordings_by_customer_id{$customer_id}}; + push @{ $self->{job_errors} }, "ConvertTimeRecordings: saving delivery order failed for time recording ids " . join ', ', map { $_->id } @{$time_recordings_by_customer_id{$customer_id}}; } else { push @donumbers, $do->donumber; } @@ -94,7 +94,7 @@ sub run { if (@{ $self->{job_errors} }) { $msg .= ' ' . t8('The following errors occurred:'); $msg .= join "\n", @{ $self->{job_errors} }; - return $msg; + die $msg; } return $msg; } -- 2.20.1