mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +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}
|
* @returns {null}
|
||||||
*/
|
*/
|
||||||
eventError(e) {
|
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();
|
this.tryReconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue