Remove error message duplication.

This commit is contained in:
Paul Chote
2020-05-02 22:34:17 +01:00
committed by reaperrr
parent bf397591f9
commit bacec2689d

View File

@@ -252,7 +252,7 @@ namespace OpenRA.Network
} }
catch (Exception ex) catch (Exception ex)
{ {
errorMessage = "Failed to connect to {0}".F(endpoint); errorMessage = "Failed to connect";
Log.Write("client", "Failed to connect to {0}: {1}".F(endpoint, ex.Message)); Log.Write("client", "Failed to connect to {0}: {1}".F(endpoint, ex.Message));
} }
}) })
@@ -264,7 +264,7 @@ namespace OpenRA.Network
if (!atLeastOneEndpoint) if (!atLeastOneEndpoint)
{ {
errorMessage = "Failed to resolve addresses for {0}".F(target); errorMessage = "Failed to resolve address";
connectionState = ConnectionState.NotConnected; connectionState = ConnectionState.NotConnected;
} }
@@ -318,7 +318,7 @@ namespace OpenRA.Network
} }
catch (Exception ex) catch (Exception ex)
{ {
errorMessage = "Connection to {0} failed".F(endpoint); errorMessage = "Connection failed";
Log.Write("client", "Connection to {0} failed: {1}".F(endpoint, ex.Message)); Log.Write("client", "Connection to {0} failed: {1}".F(endpoint, ex.Message));
} }
finally finally