Compare commits

...

2 Commits

Author SHA1 Message Date
d34eb0bd33 Fix error 2026-08-09 22:00:15 +03:00
cf9efafd36 Add better error for logging as well 2026-08-09 21:59:50 +03:00

View File

@ -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,
);