Skip to content
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

Add location and path info to error message #506

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

paulpdaniels
Copy link
Collaborator

@paulpdaniels paulpdaniels commented Jul 16, 2020

This adds the location and path info to an ExecutionError that is thrown during field resolution. I'm not sure if we want to have some sort of "opt-out" mechanism in case users don't want this behavior, but in general it is the minimum we should have when showing errors, since it allows the client to piece it back together with the original query.

@ghostdogpr
Copy link
Owner

There's one test that needs to be updated, otherwise very nice 👍

@ghostdogpr ghostdogpr merged commit a47f2e8 into ghostdogpr:master Jul 16, 2020
@paulpdaniels paulpdaniels deleted the add-meta-error-metadata branch July 16, 2020 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants