Skip to content

Commit

Permalink
Fix error rethrowing in lambda Apollo server
Browse files Browse the repository at this point in the history
  • Loading branch information
alfaproject committed Apr 6, 2021
1 parent 2a49de8 commit 4e44f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-server-lambda/src/ApolloServer.ts
Expand Up @@ -354,7 +354,7 @@ export class ApolloServer extends ApolloServerBase {
},
};
} catch (error) {
if (error.name !== 'HttpQueryError') throw Error;
if (error.name !== 'HttpQueryError') throw error;
const httpQueryError = error as HttpQueryError;
return {
body: httpQueryError.message,
Expand Down

0 comments on commit 4e44f72

Please sign in to comment.