-
Notifications
You must be signed in to change notification settings - Fork 220
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
Obscure error messages #583
Comments
Do you have concrete suggestions? |
|
Sorry about that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I came across some confusing error messages while working on https://github.com/AviKav/silicon.ex:
I got
** (ErlangError) Erlang error: :invalid_struct
when I forgot to renameto
I've gotten
for having the wrong value all the way in
image_options.shadow_adder.background
.%FormatOptions{}
was a red herring since I thought it was an Elixir struct's old name that was hanging around for some reason, when it actuality it was a Rust type.I think these error messages should be specific of where or what the issue is.
As of current I'd need to provide the user with a validation function in order to give useful error information.
This is a third place, in addition to typespecs and Rust types, where I'd need to maintain type information.
Unless something like https://github.com/Qqwy/elixir-type_check is used.
The text was updated successfully, but these errors were encountered: