diff options
author | ivan <ivan> | 2004-01-22 00:11:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-01-22 00:11:02 +0000 |
commit | bc8f77fa5e272960603487498d0ba7d207bf91d9 (patch) | |
tree | 3eac57b2e983f0d236e2a7c87d825db7df34359c | |
parent | 5b21fb3108f051bccf10640fe45d647ad6c5f3cb (diff) |
report cancellation errors properly
-rwxr-xr-x | httemplate/misc/cust_main-cancel.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/misc/cust_main-cancel.cgi b/httemplate/misc/cust_main-cancel.cgi index 526e128a4..257c3384f 100755 --- a/httemplate/misc/cust_main-cancel.cgi +++ b/httemplate/misc/cust_main-cancel.cgi @@ -7,8 +7,8 @@ my $custnum = $1; my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ); -my $error = $cust_main->cancel; -eidiot($error) if $error; +my @errors = $cust_main->cancel; +eidiot(join(' / ', @errors)) if scalar(@errors); #print $cgi->redirect($p. "view/cust_main.cgi?". $cust_main->custnum); print $cgi->redirect($p); |