Skip to content

Commit

Permalink
Merge pull request #1303 from privacy-scaling-explorations/chore/sile…
Browse files Browse the repository at this point in the history
…nce-message-0-warning

chore(core): do not print warning on failed decryption of message 0
  • Loading branch information
ctrlc03 authored Mar 18, 2024
2 parents 7dbb2ce + 97cb6af commit d0f4617
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 d0f4617

Please sign in to comment.