From: ivan Date: Mon, 28 Nov 2005 16:38:54 +0000 (+0000) Subject: better error msg X-Git-Tag: BEFORE_FINAL_MASONIZE~280 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6e261010ac03cc635036da835b3cfd6f45071dca better error msg --- diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 930e67375..4c5fac074 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -385,7 +385,8 @@ sub seconds_since_sqlradacct { my $svc_x = $self->svc_x; my @part_export = $self->part_svc->part_export_usage; - die "no usage-capable export configured for this service type" + die "no accounting-capable exports are enabled for ". $self->part_svc->svc. + " service definition" unless @part_export; #or return undef; @@ -493,7 +494,8 @@ sub attribute_since_sqlradacct { my $svc_x = $self->svc_x; my @part_export = $self->part_svc->part_export_usage; - die "no usage-capable export configured for this service type" + die "no accounting-capable exports are enabled for ". $self->part_svc->svc. + " service definition" unless @part_export; #or return undef; @@ -552,7 +554,8 @@ sub get_session_history { #$attrib ??? my @part_export = $self->part_svc->part_export_usage; - die "no accounting-capable exports are enabled for this service definition" + die "no accounting-capable exports are enabled for ". $self->part_svc->svc. + " service definition" unless @part_export; #or return undef;