Module: weitere Anpassungen für Exception::Lite → Exception::Class
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 5 Jun 2019 11:54:52 +0000 (13:54 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 5 Jun 2019 11:55:18 +0000 (13:55 +0200)
SL/BackgroundJob/CreatePeriodicInvoices.pm
SL/Controller/Inventory.pm

index 03cbdf5..5020313 100644 (file)
@@ -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;
     };
   });
 }
index bd57d78..f20f6ae 100644 (file)
@@ -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()