diff options
| author | ivan <ivan> | 2001-08-31 07:28:00 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2001-08-31 07:28:00 +0000 | 
| commit | 7c49a7040bddba0f89d74e9166d38279a3c85b05 (patch) | |
| tree | f1c4b2303aad02345d987ab3a402371f7c2aacbf | |
| parent | 237bea175ad19676bda76c3ac756a4c0b5bd899a (diff) | |
better error message for nonexistant cust_main_county records
| -rwxr-xr-x | httemplate/edit/cust_main_county-expand.cgi | 5 | 
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);  | 
