summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-05-31 20:31:05 +0000
committerivan <ivan>2002-05-31 20:31:05 +0000
commit439a47a6cfd81793c34bf5ded2cee3bb29becfe4 (patch)
treed8502670ec8f8840380822918298a89c40798351 /FS
parent2b98ba63e33b3ab12d3561cf1179911eedcdbde4 (diff)
better error reporting
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index e2705fd83..f67ef96aa 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -726,8 +726,10 @@ sub batch_card {
'payname' => $cust_main->getfield('payname'),
'amount' => $self->owed,
} );
- $cust_pay_batch->insert;
+ my $error = $cust_pay_batch->insert;
+ die $error if $error;
+ '';
}
=item print_text [TIME];
@@ -948,7 +950,7 @@ sub print_text {
=head1 VERSION
-$Id: cust_bill.pm,v 1.35 2002-05-18 09:51:30 ivan Exp $
+$Id: cust_bill.pm,v 1.36 2002-05-31 20:31:05 ivan Exp $
=head1 BUGS