diff --git a/src/errors.ts b/src/errors.ts index 6bd1f6d..068e611 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -6,7 +6,11 @@ import { Context } from './context'; import { JSONResponse } from './utils/jsonResponse'; function shouldSendToSentry(error: Error): boolean { - if (error instanceof PageNotFoundError || error instanceof MethodNotAllowedError) { + if ( + error instanceof PageNotFoundError || + error instanceof MethodNotAllowedError || + error instanceof HeaderNotDefinedError + ) { return false; } return true;