aboutsummaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client.rs b/src/client.rs
index 27cd1b8..c9dbd02 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -79,10 +79,11 @@ impl ClientConn {
read.read_exact(&mut their_version_tag[..]).await?;
if their_version_tag != netapp.version_tag {
let msg = format!(
- "Different netapp versions: {:?} (theirs) vs. {:?} (ours)",
- their_version_tag, netapp.version_tag
+ "different version tags: {} (theirs) vs. {} (ours)",
+ hex::encode(their_version_tag),
+ hex::encode(netapp.version_tag)
);
- error!("{}", msg);
+ error!("Cannot connect to {}: {}", hex::encode(&peer_id[..8]), msg);
return Err(Error::VersionMismatch(msg));
}