From 553b87e1ba138f5255b0ceed039e0c583705758f Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sat, 6 Aug 2022 12:58:04 +0300 Subject: [PATCH] Update error capture --- src/bots/factory/bots/approved/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bots/factory/bots/approved/index.ts b/src/bots/factory/bots/approved/index.ts index a5c1993..b7c86d6 100644 --- a/src/bots/factory/bots/approved/index.ts +++ b/src/bots/factory/bots/approved/index.ts @@ -441,8 +441,8 @@ export async function createApprovedBot(token: string, state: BotState): Promise } }); - bot.catch((err) => { - console.log(err); + bot.catch((err, ctx: Context) => { + console.log(err, ctx); Sentry.captureException(err); });