diff options
author | Mark Wells <mark@freeside.biz> | 2013-03-15 15:54:09 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-03-15 15:54:09 -0700 |
commit | 85966165df6b5fcdaf4b2c1c19335c401317cc33 (patch) | |
tree | dd4c6c9de92d51145168155b99dc89ff8badd035 /httemplate/edit/cust_main.cgi | |
parent | 7c2e9c37a5b57e1d58868613660602da20a0d9de (diff) |
better error message
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index be00213e2..49406a0b4 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -285,7 +285,8 @@ if ( $cgi->param('error') ) { my( $query ) = $cgi->keywords; $query =~ /^(\d+)$/; $custnum=$1; - $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ); + $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ) + or die "custnum $custnum not found"; if ( $cust_main->dbdef_table->column('paycvv') && length($cust_main->paycvv) ) { my $paycvv = $cust_main->paycvv; |