Skip to content

Commit

Permalink
Fix error message being printed needlessly
Browse files Browse the repository at this point in the history
  • Loading branch information
mnmkng committed Jul 27, 2020
1 parent 5011f18 commit 8333d21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/session_pool/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ export class Session {
}
}
// if invalid cookies are provided just log the exception. No need to retry the request automatically.
this.log.error('Could not set cookies.', { errorMessages });
if (errorMessages.length) {
this.log.error('Could not set cookies.', { errorMessages });
}
}

/**
Expand Down

0 comments on commit 8333d21

Please sign in to comment.