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

force display on graphQL errors #880

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Conversation

mathemagica
Copy link
Contributor

It was driving me nuts that graphQL syntax errors were getting silently eaten- this is particularly hard to debug. Looks like this is because the ApolloClient default error parser was assuming most errors to come in the form of parse-able JSON. When this isn't the case, instead of displaying generic error message on error parsing exception, still display the raw message as a string

Copy link
Collaborator

@schuyler1d schuyler1d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yaas! 👍

@shakalee14 shakalee14 added the S-ready for stage-main (qa) Status (ADMINS ONLY): PR label for those ready to be added for stage: Approved, tests, etc label Sep 10, 2018
This was referenced Sep 10, 2018
@shakalee14 shakalee14 merged commit 39a7ee5 into main Sep 17, 2018
@schuyler1d schuyler1d deleted the force-display-of-graphql-errors branch March 26, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-ready for stage-main (qa) Status (ADMINS ONLY): PR label for those ready to be added for stage: Approved, tests, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants