Skip to content

Improve errors when receiving bad introspection data#1063

Merged
leebyron merged 1 commit intomasterfrom
better-buildClientSchema-errors
Oct 13, 2017
Merged

Improve errors when receiving bad introspection data#1063
leebyron merged 1 commit intomasterfrom
better-buildClientSchema-errors

Conversation

@leebyron
Copy link
Copy Markdown
Contributor

I've seen a few examples of passing bad introspection data to buildClientSchema() result in a hard to understand internal error. This instead prints a more understandable error which includes a print out of the bad value in question. Hopefully this aids debugging.

This also adds a comment to the description of this function recommending that the "errors" field of a server response be checked before continuing to avoid partial results.

I've seen a few examples of passing bad introspection data to buildClientSchema() result in a hard to understand internal error. This instead prints a more understandable error which includes a print out of the bad value in question. Hopefully this aids debugging.

This also adds a comment to the description of this function recommending that the "errors" field of a server response be checked before continuing to avoid partial results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants