Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix error message when providing an incorrect peer-id (#5724)
Browse files Browse the repository at this point in the history
* Fix error message when providing an incorrect peer-id

* Fix error message to cover all cases

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
  • Loading branch information
chevdor and tomaka authored Apr 23, 2020
1 parent 7f876bf commit 45b1247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,9 +1158,9 @@ impl<B: BlockT + 'static, H: ExHashT> Future for NetworkWorker<B, H> {
if this.boot_node_ids.contains(&peer_id) {
if let PendingConnectionError::InvalidPeerId = error {
error!(
"💔 Invalid peer ID from bootnode, expected `{}` at address `{}`.",
peer_id,
"💔 The bootnode you want to connect to at `{}` provided a different peer ID than the one you expect: `{}`.",
address,
peer_id,
);
}
}
Expand Down

0 comments on commit 45b1247

Please sign in to comment.