summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-12-07 01:04:59 +0000
committerivan <ivan>2007-12-07 01:04:59 +0000
commit7753d82a54563e4c9189d54ec23fac969e592e89 (patch)
treee2f9e2c34789da4c525644be503fe85b27fe03a1
parenta60b8251761d45c90fce93cc01a856c9330434f7 (diff)
some old databases may have 'hanging' cust_credit records; we don't want to abort the upgrade because of that, just warn
-rw-r--r--FS/FS/cust_credit.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm
index 4c94e1578..6cbe1d046 100644
--- a/FS/FS/cust_credit.pm
+++ b/FS/FS/cust_credit.pm
@@ -458,7 +458,8 @@ sub _upgrade_data { # class method
$cust_credit->setfield('reason', '');
my $error = $cust_credit->replace;
- die "error inserting $self into database: $error\n"
+ warn "*** WARNING: error replacing reason in $self ".
+ $self->crednum. ": $error ***\n"
if $error;
}
}