properly log error

This commit is contained in:
JandereDev 2022-05-02 13:53:06 +02:00
parent 21315f490b
commit 1a55308047
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -198,7 +198,7 @@ client.on('messageCreate', async message => {
metrics.messages.inc({ source: 'discord', type: 'create' }); metrics.messages.inc({ source: 'discord', type: 'create' });
}) })
.catch(async e => { .catch(async e => {
console.error(`Failed to send message`, e.response.data); console.error(`Failed to send message: ${e}`);
if (reply) { if (reply) {
console.info('Reytring without reply'); console.info('Reytring without reply');
await sendBridgeMessage(undefined); await sendBridgeMessage(undefined);