From d399811cbbfe382fbfc4bc4a45806af6f7ae7702 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 17 Nov 2019 11:07:01 +0000 Subject: [PATCH] Error handler --- src/api/Security.ts | 2 +- src/api/Server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/Security.ts b/src/api/Security.ts index e5ec505..a59c64b 100644 --- a/src/api/Security.ts +++ b/src/api/Security.ts @@ -52,7 +52,7 @@ export default class Security { if (saltCheck.salt !== account.salt) return null; return account; } catch (error) { - this.client.signale.debug(error); + this.client.util.handleError(error); return null; } } diff --git a/src/api/Server.ts b/src/api/Server.ts index bc36325..43f77a3 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -39,7 +39,7 @@ export default class Server { this.app.use(route.conf.path, route.router); this.client.signale.success(`Successfully loaded route ${route.conf.path}`); } catch (error) { - this.client.signale.error(error); + this.client.util.handleError(error); } }); }