From cf9efafd36232b40dda023b5cbd99c05c931650b Mon Sep 17 00:00:00 2001 From: Sofia Date: Sun, 9 Aug 2026 21:59:50 +0300 Subject: [PATCH] Add better error for logging as well --- rust/src/net/protocol.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rust/src/net/protocol.rs b/rust/src/net/protocol.rs index ad3ea31..e1fd7d9 100644 --- a/rust/src/net/protocol.rs +++ b/rust/src/net/protocol.rs @@ -35,7 +35,17 @@ impl NetworkManager { cli.bind_mut().publish_message( format!( "Disconnected from: {}, reason: {}", - connection.address, reason + connection.address, + match reason { + teanet::package::CloseReason::InvalidIdentifier(ident) => { + format!( + "Checksum mismatch: {} != {}", + ident, + NetworkManager::identifier() + ) + } + _ => reason.to_string(), + } ), CliColor::Info, );