Slightly change output from crash.

This commit is contained in:
Bradley M. Kuhn 2024-11-03 15:53:50 -08:00
parent 31961b997c
commit 9f24452cbd

View file

@ -2006,7 +2006,7 @@ sub _readLedgerData($) {
$type = 'Monthly'; $type = 'Monthly';
} }
} }
die "Unknown type $type for $entityId from $line" if $type !~ /^(Monthly|Annual)$/ and defined $self->{programTypeSearch}; die "Unknown type \"$type\" for $entityId from $line" if $type !~ /^(Monthly|Annual)$/ and defined $self->{programTypeSearch};
$amount =~ s/,//; $amount = abs($amount); $amount =~ s/,//; $amount = abs($amount);
if (defined $amountTable{$entityId}{donations}{$date}) { if (defined $amountTable{$entityId}{donations}{$date}) {
$amountTable{$entityId}{donations}{$date} += $amount; $amountTable{$entityId}{donations}{$date} += $amount;