Added message to show which function failed
parent
3579bdd137
commit
cff8402f7d
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue