summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-02-09 04:48:22 +0000
committerivan <ivan>2011-02-09 04:48:22 +0000
commitdcd804cc350364b70da2724f96937b6749dd123d (patch)
treea3aac1c9e433b9b2be3231ec95562516ba4d9c87
parentb1779edeff58e5bce03c2982e8ddb0fa5ae5c551 (diff)
improve error message when splitting taxclasses and there aren't any yet, RT#11144
-rwxr-xr-xhttemplate/edit/process/cust_main_county-expand.cgi2
1 files changed, 1 insertions, 1 deletions
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');