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 43ff3e3 commit fb2f239Copy full SHA for fb2f239
src/error/locatedError.js
@@ -16,13 +16,12 @@ import type { ASTNode } from '../language/ast';
16
* document responsible for the original Error.
17
*/
18
export function locatedError(
19
- originalError: Error,
+ originalError: Error | GraphQLError,
20
nodes: $ReadOnlyArray<ASTNode>,
21
path: $ReadOnlyArray<string | number>,
22
): GraphQLError {
23
// Note: this uses a brand-check to support GraphQL errors originating from
24
// other contexts.
25
- // $FlowFixMe(>=0.68.0)
26
if (originalError && Array.isArray(originalError.path)) {
27
return (originalError: any);
28
}
0 commit comments