Skip to content

Fix printError/locations for multiple nodes.#1131

Merged
leebyron merged 1 commit intomasterfrom
fix-printError
Dec 8, 2017
Merged

Fix printError/locations for multiple nodes.#1131
leebyron merged 1 commit intomasterfrom
fix-printError

Conversation

@leebyron
Copy link
Copy Markdown
Contributor

@leebyron leebyron commented Dec 8, 2017

If a GraphQLError represents multiple nodes across files (could happen for validation across multiple parsed files) then the reported locations and printError output can be incorrect for the second node. This ensures locations are derived from nodes whenever possible to get correct location and amends comment documentation.

If a GraphQLError represents multiple nodes across files (could happen for validation across multiple parsed files) then the reported locations and printError output can be incorrect for the second node. This ensures locations are derived from nodes whenever possible to get correct location and amends comment documentation.
@leebyron leebyron merged commit b374965 into master Dec 8, 2017
@leebyron leebyron deleted the fix-printError branch December 8, 2017 20:48
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