From: Ivan Kohler Date: Thu, 21 Aug 2014 07:30:40 +0000 (-0700) Subject: better error X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=17eb4823b553563b97dbe0ef36689ca6dd5e466c;p=freeside.git better error --- diff --git a/FS/FS/part_pkg/bulk_Common.pm b/FS/FS/part_pkg/bulk_Common.pm index c26eb1470..900ad0049 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];