diff --git a/src/app.ts b/src/app.ts index c759be3..7eaec98 100644 --- a/src/app.ts +++ b/src/app.ts @@ -111,16 +111,15 @@ const app = new Hono(); if (Conf.sentryDsn) { // @ts-ignore Mismatched hono types. - app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn })); + app.use( + '*', + sentryMiddleware({ + dsn: Conf.sentryDsn, + ignoreErrors: ['No pubkey provided'], + }), + ); } -app.onError((err) => { - if (err instanceof HTTPException) { - return err.getResponse(); - } - throw err; -}); - const debug = Debug('ditto:http'); app.use('/api/*', logger(debug));