1
0
Fork 0

Add error event

refactor/models
Bsian 2020-07-28 12:52:11 +01:00
parent 97d6b8b1bb
commit 3eabf3b319
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 5 additions and 2 deletions

View File

@ -59,8 +59,11 @@ export default class Client extends Eris.Client {
} }
public async errorEvents() { public async errorEvents() {
process.on('unhandledRejection', (error) => { process.on('unhandledRejection', (error: Error) => {
this.signale.error(error); this.util.handleError(error);
});
this.on('error', (error) => {
this.util.handleError(error);
}); });
} }