Skip to content

Commit

Permalink
Ensure errors thrown in createGraphQLYoga are logged
Browse files Browse the repository at this point in the history
  • Loading branch information
will-ks committed Sep 16, 2024
1 parent 2827718 commit cdf6053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/graphql-server/src/createGraphQLYoga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export const createGraphQLYoga = ({

return { yoga, logger }
} catch (e) {
logger.error(e)
if (onException) {
onException()
}
Expand Down

0 comments on commit cdf6053

Please sign in to comment.