-
Notifications
You must be signed in to change notification settings - Fork 4
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
Better errors for "Invalid type". #14
Comments
Is the library not maintained anymore? |
Hello @XeniaSiskaki. Rather, the library has be kinda stable for a long time and suit our uses very well. But don't hesitate to open issues or pull requests if you want/need to see it evolve. |
We have been using it for a long time now as well without problems. I'm just interested in improving this "Invalid Type" error. |
Can you remind me when it occurs? I think I forgot it. |
Well, I have no idea. We see this error in production and I only know it comes from the I couldn't reproduce it locally, that's why I think a better error message would be very helpful. One specifying which cursor has a wrong type and what it was expecting vs. the type it got. |
I found out why this is thrown. The code snippet is the following: Basically, |
Turns out Still the better error message would be very helpful |
To be nitpicky, it would be really nice to have the concerned type in the error message when 'Invalid type' errors occur.
The text was updated successfully, but these errors were encountered: