From 44ed4e99507c6de660029eabad6b3ccdc7ab5fd6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 5 Jun 2019 13:54:52 +0200 Subject: [PATCH] =?utf8?q?Module:=20weitere=20Anpassungen=20f=C3=BCr=20Exc?= =?utf8?q?eption::Lite=20=E2=86=92=20Exception::Class?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/BackgroundJob/CreatePeriodicInvoices.pm | 2 +- SL/Controller/Inventory.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() -- 2.20.1