freeside/FS/FS cust_bill.pm,1.84,1.85
ivan
ivan at pouncequick.420.am
Wed Apr 21 13:52:35 PDT 2004
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv1894
Modified Files:
cust_bill.pm
Log Message:
as an invoice event, emailing/printing problems should be fatal and trigger retry
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- cust_bill.pm 23 Jan 2004 03:22:59 -0000 1.84
+++ cust_bill.pm 21 Apr 2004 20:52:32 -0000 1.85
@@ -339,7 +339,7 @@
'subject' => 'Invoice',
'body' => \@print_text,
);
- return "can't send invoice: $error" if $error;
+ die "can't email invoice: $error\n" if $error;
}
@@ -350,11 +350,11 @@
if ( grep { $_ eq 'POST' } @invoicing_list ) { #postal
my $lpr = $conf->config('lpr');
open(LPR, "|$lpr")
- or return "Can't open pipe to $lpr: $!";
+ or die "Can't open pipe to $lpr: $!\n";
print LPR @print_text;
close LPR
- or return $! ? "Error closing $lpr: $!"
- : "Exit status $? from $lpr";
+ or die $! ? "Error closing $lpr: $!\n"
+ : "Exit status $? from $lpr\n";
}
'';
More information about the freeside-commits
mailing list