[freeside-commits] branch FREESIDE_3_BRANCH updated. 17eb4823b553563b97dbe0ef36689ca6dd5e466c

Ivan ivan at 420.am
Thu Aug 21 00:30:41 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  17eb4823b553563b97dbe0ef36689ca6dd5e466c (commit)
      from  8eba24c5843a08f8221d1c6e998c9526bef28c0b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 17eb4823b553563b97dbe0ef36689ca6dd5e466c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 21 00:30:40 2014 -0700

    better error

diff --git a/FS/FS/part_pkg/bulk_Common.pm b/FS/FS/part_pkg/bulk_Common.pm
index c26eb14..900ad00 100644
--- a/FS/FS/part_pkg/bulk_Common.pm
+++ b/FS/FS/part_pkg/bulk_Common.pm
@@ -64,7 +64,8 @@ sub calc_recur {
   foreach my $cust_svc ( $self->_bulk_cust_svc( $cust_pkg, $sdate ) ) {
 
     my @label = $cust_svc->label_long( $$sdate, $last_bill );
-    die "fatal: no label found, wtf?" unless scalar(@label); #?
+    die "fatal: no label found for svcnum ". $cust_svc->svcnum
+      unless scalar(@label); #?
     my $svc_details = $label[0]. ': '. $label[1]. ': ';
     $part_svc_label{$cust_svc->svcpart} ||= $label[0];
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg/bulk_Common.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list