We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 057d7b8 commit a3fe1fbCopy full SHA for a3fe1fb
packages/graphql-server/src/createGraphQLYoga.ts
@@ -202,7 +202,7 @@ export const createGraphQLYoga = ({
202
logger.fatal(e, '\n ⚠️ GraphQL server crashed \n')
203
204
if (onException) {
205
- onException()
+ onException(e)
206
}
207
208
// Forcefully crash the graphql server
packages/graphql-server/src/types.ts
@@ -132,7 +132,7 @@ export type GraphQLYogaOptions = {
132
/**
133
* @description A callback when an unhandled exception occurs. Use this to disconnect your prisma instance.
134
*/
135
- onException?: () => void
+ onException?: (e: unknown) => void
136
137
138
* @description Services passed from the glob import:
0 commit comments