From: Jan Büren Date: Fri, 1 Jan 2021 17:14:19 +0000 (+0100) Subject: CTR: Wirklich mit "die", die Fehler werfen. Einrückung X-Git-Tag: kivitendo-mebil_0.1-0~9^2~311 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=719fd0838e9631d7397d4b2ca4303dd85c4b26a3;p=kivitendo-erp.git CTR: Wirklich mit "die", die Fehler werfen. Einrückung --- 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; }