Attach message to error

Apparently this was causing detached logs, so just stop those
complaints if the error isn't being bubbled
This commit is contained in:
Cadence Ember
2026-03-26 00:16:30 +13:00
parent 8c023cc936
commit 953b3e7741

View File

@@ -34,7 +34,10 @@ async function emojisToState(emojis, guild) {
if (e.data?.errcode === "M_TOO_LARGE") { // Very unlikely to happen. Only possible for 3x-series emojis uploaded shortly after animated emojis were introduced, when there was no 256 KB size limit.
return
}
console.error(`Trying to handle emoji ${emoji.name} (${emoji.id}), but...`)
e["emoji"] = {
name: emoji.name,
id: emoji.id
}
throw e
})
))