From bf3c218094156d5514dcc3841d16584904d42e1f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 14 Dec 2023 13:07:39 +0200 Subject: [PATCH] more details in error log --- src/client/components/ModerationManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/ModerationManager.ts b/src/client/components/ModerationManager.ts index d6c4c14..b35dfbe 100644 --- a/src/client/components/ModerationManager.ts +++ b/src/client/components/ModerationManager.ts @@ -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)