Skip to content

Commit

Permalink
chore(core): do not print warning on failed decryption of message 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Mar 18, 2024
1 parent 7dbb2ce commit 97cb6af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/ts/Poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ export class Poll implements IPoll {
// otherwise we continue processing but add the default blank data instead of
// this invalid message
if (e instanceof ProcessMessageError) {
// if logging is enabled, print the error
if (!quiet) {
// if logging is enabled, and it's not the first message, print the error
if (!quiet && idx !== 0) {
// eslint-disable-next-line no-console
console.log(`Error at message index ${idx} - ${e.message}`);
}
Expand Down

0 comments on commit 97cb6af

Please sign in to comment.