Skip to content

Commit

Permalink
Merge pull request #5 from martinbaste/fix/compiling_error
Browse files Browse the repository at this point in the history
Add additional parser decimal error match types
  • Loading branch information
sameer authored Feb 16, 2023
2 parents 8580ccc + 34a2e84 commit ac2fc73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ fn decimal_err_into_str(err: Error) -> &'static str {
"precision necessary to represent exceeds the maximum possible"
}
Error::ErrorString(_) => "cannot parse as decimal (unable to display root cause)",
Error::Underflow => "cannot parse as decimal (unable to display root cause)",
Error::ConversionTo(_) => "cannot parse as decimal (unable to display root cause)",
}
}

Expand Down

0 comments on commit ac2fc73

Please sign in to comment.