From 7c49a7040bddba0f89d74e9166d38279a3c85b05 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 31 Aug 2001 07:28:00 +0000 Subject: [PATCH] better error message for nonexistant cust_main_county records --- httemplate/edit/cust_main_county-expand.cgi | 5 +++-- 1 file 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 @@ <% -# +# 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); -- 2.11.0