Skip to content

Commit

Permalink
Merge pull request #1910 from Netflix/fix-validation-error
Browse files Browse the repository at this point in the history
Add the path if it exists in the error for datafetching execptions.
  • Loading branch information
srinivasankavitha committed May 13, 2024
2 parents c3e01f7 + 5526799 commit 367debf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class GraphQLJavaErrorInstrumentation : SimplePerformantInstrumentation() {
.locations(error.locations)
.message(error.message)
.extensions(error.extensions)
if (error.path != null) {
graphqlErrorBuilder.path(error.path)
}
graphqlErrors.add(graphqlErrorBuilder.build())
} else {
graphqlErrors.add(error)
Expand Down

0 comments on commit 367debf

Please sign in to comment.