mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-02 17:48:34 +01:00
GramJs: Log socket connection failure cause (#1299)
This commit is contained in:
parent
e032a8ff63
commit
4e4299bf39
@ -182,7 +182,7 @@ class MTProtoSender {
|
||||
if (this._updateCallback && attempt === 0) {
|
||||
this._updateCallback(new UpdateConnectionState(UpdateConnectionState.disconnected));
|
||||
}
|
||||
this._log.error(`WebSocket connection failed attempt: ${attempt + 1}`);
|
||||
this._log.error(`WebSocket connection failed attempt: ${attempt + 1}. Cause: ${err.message}`);
|
||||
await Helpers.sleep(this._delay);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user