projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e8dc13c
)
handle errors better
author
ivan
<ivan>
Thu, 28 Feb 2002 23:07:32 +0000
(23:07 +0000)
committer
ivan
<ivan>
Thu, 28 Feb 2002 23:07:32 +0000
(23:07 +0000)
httemplate/misc/cancel-unaudited.cgi
patch
|
blob
|
history
diff --git
a/httemplate/misc/cancel-unaudited.cgi
b/httemplate/misc/cancel-unaudited.cgi
index
5d3c873
..
8f31db8
100755
(executable)
--- 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;