Skip to content

Commit

Permalink
improvement: tweak ignored errors handling in real-time client
Browse files Browse the repository at this point in the history
  • Loading branch information
thaaddeus committed Dec 6, 2022
1 parent a39c8fa commit 66a092d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/realtimefeeds/realtimefeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ export abstract class RealTimeFeedBase implements RealTimeFeedIterable {
if (this.messageIsError(messageDeserialized)) {
if (this.isIgnoredError(messageDeserialized)) {
if (this._onError !== undefined) {
this._onError(new Error(`Received ignored error message:${message.toString()}`))
this.debug(`Received ignored error message: ${message.toString()}`)
}
} else {
throw new Error(`Received error message:${message.toString()}`)
throw new Error(`Received error message: ${message.toString()}`)
}
}

Expand Down

0 comments on commit 66a092d

Please sign in to comment.