forked from engineering/cloudservices
Error handler
parent
69a7af127b
commit
d399811cbb
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue