Error handler

merge-requests/1/merge
Bsian 2019-11-17 11:07:01 +00:00
parent 69a7af127b
commit d399811cbb
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default class Security {
if (saltCheck.salt !== account.salt) return null; if (saltCheck.salt !== account.salt) return null;
return account; return account;
} catch (error) { } catch (error) {
this.client.signale.debug(error); this.client.util.handleError(error);
return null; return null;
} }
} }

View File

@ -39,7 +39,7 @@ export default class Server {
this.app.use(route.conf.path, route.router); this.app.use(route.conf.path, route.router);
this.client.signale.success(`Successfully loaded route ${route.conf.path}`); this.client.signale.success(`Successfully loaded route ${route.conf.path}`);
} catch (error) { } catch (error) {
this.client.signale.error(error); this.client.util.handleError(error);
} }
}); });
} }