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 d88c1ab commit f580edfCopy full SHA for f580edf
src/handlers.ts
@@ -37,7 +37,7 @@ export function handleValidationError(error: FastifyError, request: FastifyReque
37
38
export function handleErrors(error: FastifyError | Error, request: FastifyRequest, reply: FastifyReply): void {
39
if (request[kHttpErrorsEnhancedConfiguration]?.preHandler) {
40
- error = request[kHttpErrorsEnhancedConfiguration]!.preHandler!(error)
+ error = request[kHttpErrorsEnhancedConfiguration].preHandler(error)
41
}
42
43
// It is a generic error, handle it
0 commit comments