Skip to content

Commit

Permalink
fix: add missing await to catch errors thrown in parsingDidEnd() (#6559)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubhy authored and glasser committed Jun 13, 2022
1 parent 9eb0807 commit 0d87ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/requestPipeline.ts
Expand Up @@ -212,7 +212,7 @@ export async function processGraphQLRequest<TContext extends BaseContext>(

try {
requestContext.document = parse(query, internals.parseOptions);
parsingDidEnd();
await parsingDidEnd();
} catch (syntaxError) {
await parsingDidEnd(syntaxError as Error);
// XXX: This cast is pretty sketchy, as other error types can be thrown
Expand Down

0 comments on commit 0d87ef1

Please sign in to comment.