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); } }); }