We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934049f commit a12f7c3Copy full SHA for a12f7c3
Sources/GraphQL/Execution/Execute.swift
@@ -788,7 +788,10 @@ func completeValueCatchingError(
788
path: path,
789
result: result
790
).mapIfError { error -> Any? in
791
- exeContext.append(error: locatedError(originalError: error, nodes: fieldASTs, path: path))
+ guard let error = error as? GraphQLError else {
792
+ fatalError()
793
+ }
794
+ exeContext.append(error: error)
795
return nil
796
}
797
@@ -821,8 +824,9 @@ func completeValueWithLocatedError(
821
824
info: info,
822
825
823
826
- )
-
827
+ ).thenIfErrorThrowing { error -> Any? in
828
+ throw locatedError(originalError: error, nodes: fieldASTs, path: path)
829
830
return completed
831
} catch {
832
throw locatedError(
0 commit comments