1
0
Fork 0

Added message to show which function failed

refactor/models
Bsian 2019-10-29 16:09:12 +00:00
parent 3579bdd137
commit cff8402f7d
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ export default class Client extends Eris.Client {
try { try {
(require(`./functions/${func}`).default)(this); (require(`./functions/${func}`).default)(this);
} catch (error) { } catch (error) {
this.signale.error(`Error occured loading ${func}`);
await this.util.handleError(error); await this.util.handleError(error);
} }
}); });