From 0c73587b25b3c9716bcdd1747e47441ed5089b45 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Tue, 13 Oct 2020 19:49:31 +0300 Subject: [PATCH] Add error handler for Eris errors Previously this was done within Knub, but Knub no longer automatically places an error handler for Eris since v30.0.0-beta.24 --- backend/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/index.ts b/backend/src/index.ts index cc71a6e7..3daf475c 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -147,6 +147,10 @@ connect().then(async () => { } }); + client.on("error", err => { + logger.error(`[ERIS] ${String(err)}`); + }); + const allowedGuilds = new AllowedGuilds(); const guildConfigs = new Configs();