From 06f852070c45d97ac5b060b7462c8b22f9c68bcc Mon Sep 17 00:00:00 2001 From: LipkeGu Date: Thu, 18 Sep 2014 00:07:11 +0200 Subject: [PATCH] Added return values for "Timeout" and "DNS" Errors Added Return value for: - WebExceptionStatus.NameResolutionFailure : "DNS lookup failed" - case WebExceptionStatus.Timeout: "Connection timeout" --- OpenRA.Game/Download.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Download.cs b/OpenRA.Game/Download.cs index e72e43d5aa..b037276635 100644 --- a/OpenRA.Game/Download.cs +++ b/OpenRA.Game/Download.cs @@ -28,7 +28,9 @@ namespace OpenRA switch (ex.Status) { case WebExceptionStatus.NameResolutionFailure: + return "DNS lookup failed"; case WebExceptionStatus.Timeout: + return "Connection timeout"; case WebExceptionStatus.ConnectFailure: return "Cannot connect to remote server"; case WebExceptionStatus.ProtocolError: @@ -74,4 +76,4 @@ namespace OpenRA cancelled = true; } } -} \ No newline at end of file +}