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 additional debugging info when JSON decoding fails #21

Closed
wants to merge 1 commit into from

Conversation

xiekevin
Copy link

This commit takes a stab at implementing #20.

GraphQLMap now returns a GraphQLMapDecodingError instead of a JSONDecodingError which contains a little bit more information on where the decoding failed.

The new information can be accessed via the key and localizedJson properties in the error and will allow debugging to be a bit more descriptive.

@apollo-cla
Copy link

@xiekevin: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

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.

2 participants