Added message to show which function failed

merge-requests/1/merge
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 {
(require(`./functions/${func}`).default)(this);
} catch (error) {
this.signale.error(`Error occured loading ${func}`);
await this.util.handleError(error);
}
});