From 84cb76fc346c721d87fa42515cd0780a01c0a686 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 9 Feb 2011 04:48:21 +0000 Subject: [PATCH] improve error message when splitting taxclasses and there aren't any yet, RT#11144 --- httemplate/edit/process/cust_main_county-expand.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httemplate/edit/process/cust_main_county-expand.cgi b/httemplate/edit/process/cust_main_county-expand.cgi index 9984b08fa..a10827621 100755 --- a/httemplate/edit/process/cust_main_county-expand.cgi +++ b/httemplate/edit/process/cust_main_county-expand.cgi @@ -22,7 +22,7 @@ if ( $cgi->param('taxclass') ) { or die dbh->errstr; $sth->execute or die $sth->errstr; @expansion = map $_->[0], @{$sth->fetchall_arrayref}; - die "no taxclasses - add one first" unless @expansion;#XXX better err handling + errorpage "No taxclasses - add one first" unless @expansion; } else { @expansion = split /[\n\r]{1,2}/, $cgi->param('expansion'); -- 2.11.0