mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Emit error instead of console.log
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user