-$cust_bill->$method({ 'template' => $template,
- 'notice_name' => $notice_name,
- });
+$cust_bill->set('mode' => $mode) if $mode;
+
+#these methods die instead of return errors, so, handle that without a backtrace
+eval { $cust_bill->$method({ 'template' => $template,
+ 'notice_name' => $notice_name,
+ });
+ };
+my $error = $@;