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