-
Notifications
You must be signed in to change notification settings - Fork 88
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
How to add "... expected {TOKEN}" to error messages? #88
Comments
This is a great idea! It would require modifying the Racc engine, which is something almost no-one since the original author has done. |
Cool, thanks for your response! If I get a chance to take a look, I'll be sure to report back :) |
@rmosolgo... Not sure why you closed this. Perhaps you thought that "it would require modifying the Racc engine" was a secret code for "no"? It wasn't. |
I got the answer to my question, and I don't have the bandwidth to work on a fix now (:'() so I figured I'd close it out. Feel free to keep it open if you want to thought! |
Hi! I've been using Racc very happily with graphql-ruby for a while now. It's easy-to-use and fast, so thanks for maintaining it!
I'd like to improve the error messages to have some helpful info, for example, instead of:
I'd like to say:
However, in reviewing the
on_error
docs, I don't see a way to access which token was expected. Is it possible to do that with Racc?Thanks!
The text was updated successfully, but these errors were encountered: