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