diff options
author | ivan <ivan> | 2002-02-28 23:07:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-02-28 23:07:32 +0000 |
commit | 8068d7c9cca24c3517ea46f1addf412a9d362de9 (patch) | |
tree | 27e2aa94197d941ae3cecb7a4eaabb31c31fbd66 /httemplate/misc | |
parent | e8dc13cd1af07846cd3015986f3a3fd34cdcdaea (diff) |
handle errors better
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-x | httemplate/misc/cancel-unaudited.cgi | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/httemplate/misc/cancel-unaudited.cgi b/httemplate/misc/cancel-unaudited.cgi index 5d3c87316..8f31db838 100755 --- a/httemplate/misc/cancel-unaudited.cgi +++ b/httemplate/misc/cancel-unaudited.cgi @@ -25,11 +25,8 @@ local $SIG{TSTP} = 'IGNORE'; local $FS::UID::AutoCommit = 0; my $error = $svc_acct->cancel; -&myeidiot($error) if $error; -$error = $svc_acct->delete; -&myeidiot($error) if $error; - -$error = $cust_svc->delete; +$error ||= $svc_acct->delete; +$error ||= $cust_svc->delete; if ( $error ) { $dbh->rollback; |