-
Notifications
You must be signed in to change notification settings - Fork 57
Better error messages #3
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
Comments
Another approach would be to implement the methods and mark them deprecated, then panic at runtime. Not great, but it'd at least get a compile-time message in the right place. |
@TedDriggs - your approach won't work, because if two fields are missing I'll have two deprecated I don't think @emosenkis' approach will work either, because I'm not using traits here (don't want to force the user to import a preamble for every |
To get better error messages that just "not found" you could implement the missing methods but have them take an argument whose name is the error message. It's not pretty, but at least somewhere in the "wrong number of args" error message there would be a hint about the actual issue.
The text was updated successfully, but these errors were encountered: