From: Moritz Bunkus Date: Wed, 5 Jun 2019 11:54:52 +0000 (+0200) Subject: Module: weitere Anpassungen für Exception::Lite → Exception::Class X-Git-Tag: release-3.5.4~62 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=44ed4e99507c6de660029eabad6b3ccdc7ab5fd6;p=kivitendo-erp.git Module: weitere Anpassungen für Exception::Lite → Exception::Class --- diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index 03cbdf51c..5020313d2 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -358,7 +358,7 @@ sub _print_invoice { $form->parse_template(\%::myconfig); 1; } or do { - push @{ $self->{job_errors} }, $EVAL_ERROR->getMessage; + push @{ $self->{job_errors} }, $EVAL_ERROR->error; }; }); } diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index bd57d7849..f20f6aee8 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -416,7 +416,7 @@ sub action_stock { comment => $::form->{comment}, }); 1; - } or do { $transfer_error = $EVAL_ERROR->getMessage; } + } or do { $transfer_error = $EVAL_ERROR->error; } }); if (!$transfer_error) { @@ -567,7 +567,7 @@ sub action_save_stocktaking { stocktaking_cutoff_date => $::form->{cutoff_date_as_date}, }); 1; - } or do { $transfer_error = $EVAL_ERROR->getMessage; } + } or do { $transfer_error = $EVAL_ERROR->error; } }); return $self->js->flash('error', $transfer_error)->render()