From 6e261010ac03cc635036da835b3cfd6f45071dca Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 28 Nov 2005 16:38:54 +0000 Subject: [PATCH] better error msg --- FS/FS/cust_svc.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; -- 2.11.0