mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Emit error instead of console.log
This commit is contained in:
parent
49d525109f
commit
680ac48e3d
2 changed files with 7 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -191,7 +191,12 @@ class WebSocketManager {
|
|||
* @returns {null}
|
||||
*/
|
||||
eventError(e) {
|
||||
console.log(e);
|
||||
/**
|
||||
* Emitted whenever the Client encounters a serious connection error
|
||||
* @event Client#error
|
||||
* @param {Error} error the encountered error
|
||||
*/
|
||||
this.client.emit('error', e);
|
||||
this.tryReconnect();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue