Add error event

merge-requests/4/head
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() {
process.on('unhandledRejection', (error) => {
this.signale.error(error);
process.on('unhandledRejection', (error: Error) => {
this.util.handleError(error);
});
this.on('error', (error) => {
this.util.handleError(error);
});
}