Module: Exception::Lite durch Exception::Class ersetzt
[kivitendo-erp.git] / SL / Controller / Order.pm
index 144fc87..5a42a19 100644 (file)
@@ -1724,7 +1724,7 @@ sub generate_pdf {
         },
       );
       1;
-    } || push @errors, ref($EVAL_ERROR) eq 'SL::X::FormError' ? $EVAL_ERROR->getMessage : $EVAL_ERROR;
+    } || push @errors, ref($EVAL_ERROR) eq 'SL::X::FormError' ? $EVAL_ERROR->error : $EVAL_ERROR;
   });
 
   return @errors;