Skip to content

Commit 55839ca

Browse files
committed
This is the fix to completeValueCatchingError
1 parent 17a6f7d commit 55839ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/GraphQL/Execution/Execute.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,10 +788,7 @@ func completeValueCatchingError(
788788
path: path,
789789
result: result
790790
).mapIfError { error -> Any? in
791-
guard let error = error as? GraphQLError else {
792-
fatalError()
793-
}
794-
exeContext.append(error: error)
791+
exeContext.append(error: locatedError(originalError: error, nodes: fieldASTs, path: path))
795792
return nil
796793
}
797794

0 commit comments

Comments
 (0)