Elixir library for working with Money safer, easier, and fun... Is an interpretation of the Fowler's Money pattern in fun.prog.
826
stars
139
forks
source link
Improves error message when Money.parse! fails #141
Closed
michelboaventura closed 4 years ago
The current error message isn't helpful because it doesn't show the full context to help debug the problem. For example, in a trace like:
it is hard to figure out that the problem is that we are using an invalid currency. With this commit the above error becomes:
which hopefully will make debug a little bit easier.