summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2001-08-31 07:28:00 +0000
committerivan <ivan>2001-08-31 07:28:00 +0000
commit7c49a7040bddba0f89d74e9166d38279a3c85b05 (patch)
treef1c4b2303aad02345d987ab3a402371f7c2aacbf /httemplate/edit
parent237bea175ad19676bda76c3ac756a4c0b5bd899a (diff)
better error message for nonexistant cust_main_county records
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/cust_main_county-expand.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main_county-expand.cgi b/httemplate/edit/cust_main_county-expand.cgi
index 6b422cca6..4460ee8ad 100755
--- a/httemplate/edit/cust_main_county-expand.cgi
+++ b/httemplate/edit/cust_main_county-expand.cgi
@@ -1,5 +1,5 @@
<%
-#<!-- $Id: cust_main_county-expand.cgi,v 1.2 2001-08-21 02:31:56 ivan Exp $ -->
+#<!-- $Id: cust_main_county-expand.cgi,v 1.3 2001-08-31 07:28:00 ivan Exp $ -->
use strict;
use vars qw( $cgi $taxnum $cust_main_county $p1 $delim $expansion );
@@ -27,7 +27,8 @@ if ( $cgi->param('error') ) {
$expansion = '';
}
-$cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum});
+$cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum})
+ or die "cust_main_county.taxnum $taxnum not found";
die "Can't expand entry!" if $cust_main_county->getfield('county');
$p1 = popurl(1);