From cff8402f7dd57d815e63bcd8fb8334d454569cb9 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 29 Oct 2019 16:09:12 +0000 Subject: [PATCH] Added message to show which function failed --- src/Client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.ts b/src/Client.ts index 4af6ff8..0875c10 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -58,6 +58,7 @@ export default class Client extends Eris.Client { try { (require(`./functions/${func}`).default)(this); } catch (error) { + this.signale.error(`Error occured loading ${func}`); await this.util.handleError(error); } });