more details in error log

This commit is contained in:
Erik 2023-12-14 13:07:39 +02:00
parent f08879a19d
commit bf3c218094

View File

@ -636,7 +636,7 @@ class ModerationManager implements Initialisable
{ $set: { _callbacked: true } }
).catch((e) =>
{
this.#logger.error(`Error during update of infraction:\n${e.stack || e}`);
this.#logger.error(`Error during update of infraction ${infraction.id}:\n${e.stack || e}\n${e.errInfo}`);
});
const cb = this.#callbacks.get(infraction.id);
if (cb)