From 1a55308047914eb7aedbb9ba8c02e33bb43d68e5 Mon Sep 17 00:00:00 2001 From: JandereDev Date: Mon, 2 May 2022 13:53:06 +0200 Subject: [PATCH] properly log error --- bridge/src/discord/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/src/discord/events.ts b/bridge/src/discord/events.ts index 9814439..11d499a 100644 --- a/bridge/src/discord/events.ts +++ b/bridge/src/discord/events.ts @@ -198,7 +198,7 @@ client.on('messageCreate', async message => { metrics.messages.inc({ source: 'discord', type: 'create' }); }) .catch(async e => { - console.error(`Failed to send message`, e.response.data); + console.error(`Failed to send message: ${e}`); if (reply) { console.info('Reytring without reply'); await sendBridgeMessage(undefined);