From d4544af7a0bca543b59e1af27cfd80dd1524cd0a Mon Sep 17 00:00:00 2001 From: Cesium Date: Sat, 1 Nov 2025 00:37:31 -0400 Subject: [PATCH] is this "error handling"? --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c89f88c..1f6776c 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,7 @@ client.on(Events.MessageReactionAdd, (reaction, user) => { if (reaction.emoji.name === '🫃' && !user.bot) { reaction.message.react('🫃') for (const mpreg of mpregs) { - reaction.message.react(mpreg).catch(console.error()) + reaction.message.react(mpreg).catch(err => console.error(err.stack?.split('\n')[0] || err.message || String(err).split('\n')[0])) } }