mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix swallowed network error messages.
This commit is contained in:
parent
f170da4da6
commit
5bb27d9292
@ -415,7 +415,9 @@ fn get_client_msg_error(
|
||||
// and server version it is almost definitely due to this mismatch rather than
|
||||
// a true networking error.
|
||||
let net_error = |error: String, mismatched_server_info: Option<ServerInfo>| -> String {
|
||||
if let Some(server_info) = mismatched_server_info {
|
||||
if let Some(server_info) =
|
||||
mismatched_server_info.filter(|info| info.git_hash != *common::util::GIT_HASH)
|
||||
{
|
||||
format!(
|
||||
"{} {}: {} ({}) {}: {} ({})",
|
||||
localization.get_msg("main-login-network_wrong_version"),
|
||||
|
Loading…
Reference in New Issue
Block a user