Improve Error Management #1439
gabrocheleau
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As previously discussed in #487, stringified error messages are not a reliable solution long-term.
The alernatives discussed are:
I think that approaches 2 and 3 are better than 1 since they give us the benefit of predictable/easily testable errors (we just check the type of error) but keeping the flexibility of messages.
This is the usage that I'd have in mind:
Related issue: #1440
Beta Was this translation helpful? Give feedback.
All reactions