Permalink
Browse files

Better error message on parsing invalid data

  • Loading branch information...
1 parent 7a267af commit d0dcd5b76062d9a7fc1eedfd34565a80ff4a93fe Max Maischein committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Finance/Bank/Postbank_de/Account.pm
@@ -162,7 +162,7 @@ sub parse_statement {
if ($balance =~ /^(-?[0-9.,]+)\s*$/) {
$self->$method( ['????????',$self->parse_amount($balance)]);
} else {
- die "Invalid number '$_' found for $total";
+ die "Invalid number '$balance' found for $method";
};
};
};

0 comments on commit d0dcd5b

Please sign in to comment.