From: Mark Wells Date: Thu, 13 Dec 2012 17:07:42 +0000 (-0800) Subject: better error message when export_links can't find a service X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3bed798b18bf3a01343cd53fd3cfdf3463041bea better error message when export_links can't find a service --- diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 52069316d..b608b2349 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -479,7 +479,7 @@ Returns a listref of html elements associated with this service's exports. sub export_links { my $self = shift; my $svc_x = $self->svc_x - or return "can't find ". $self->part_svc->svcdb. '.svcnum '. $self->svcnum; + or return [ "can't find ". $self->part_svc->svcdb. '.svcnum '. $self->svcnum ]; $svc_x->export_links; }