Merge pull request #6489 from LipkeGu/patch-5

Added return values for "Timeout" and "DNS" Errors
This commit is contained in:
Paul Chote
2014-09-18 21:09:28 +12:00

View File

@@ -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;
}
}
}
}