Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception returned when Decimal.parse("7654832e-d977-469d-a88d-f27d738d4097") #213

Open
abel-cherinet-clark opened this issue Nov 14, 2024 · 0 comments · May be fixed by #218
Open

Exception returned when Decimal.parse("7654832e-d977-469d-a88d-f27d738d4097") #213

abel-cherinet-clark opened this issue Nov 14, 2024 · 0 comments · May be fixed by #218

Comments

@abel-cherinet-clark
Copy link

abel-cherinet-clark commented Nov 14, 2024

Here is what the exception looks like when running Decimal.parse("7654832e-d977-469d-a88d-f27d738d4097")

** (ArgumentError) errors were found at the given arguments:

  * 1st argument: not a textual representation of an integer

    (erts 14.0.2) :erlang.list_to_integer(~c"-")
    (decimal 2.1.1) lib/decimal.ex:1873: Decimal.parse_unsign/1
    iex:1: (file)

Expected result is that instead of an exception, it returns :error

@treere treere linked a pull request Jan 16, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant