diff --git a/src/common/lib/client/realtimepresence.ts b/src/common/lib/client/realtimepresence.ts index 321ab245c..d9cb1b427 100644 --- a/src/common/lib/client/realtimepresence.ts +++ b/src/common/lib/client/realtimepresence.ts @@ -441,8 +441,7 @@ class RealtimePresence extends EventEmitter { // RTP17g1: suppress id if the connId has changed const id = (entry.connectionId === connId) ? entry.id : undefined; this._enterOrUpdateClient(id, entry.clientId, entry.data, 'enter').catch((err) => { - const msg = 'Presence auto-re-enter failed: ' + err.toString(); - const wrappedErr = new ErrorInfo(msg, 91004, 400); + const wrappedErr = new ErrorInfo('Presence auto re-enter failed', 91004, 400, err); Logger.logAction(this.logger, Logger.LOG_ERROR, 'RealtimePresence._ensureMyMembersPresent()', msg); const change = new ChannelStateChange(this.channel.state, this.channel.state, true, false, wrappedErr); this.channel.emit('update', change);