mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Update error capture
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user