Commit fc153521 authored by justcoding121's avatar justcoding121

#564 update error msg

parent 8d26b5d2
...@@ -417,9 +417,10 @@ namespace Titanium.Web.Proxy ...@@ -417,9 +417,10 @@ namespace Titanium.Web.Proxy
/// <param name="protocolType">The proxy protocol type.</param> /// <param name="protocolType">The proxy protocol type.</param>
public void SetAsSystemProxy(ExplicitProxyEndPoint endPoint, ProxyProtocolType protocolType) public void SetAsSystemProxy(ExplicitProxyEndPoint endPoint, ProxyProtocolType protocolType)
{ {
if (RunTime.IsRunningOnMono) if (!RunTime.IsWindows)
{ {
throw new Exception("Mono Runtime do not support system proxy settings."); throw new NotSupportedException(@"Setting system proxy settings are only supported in Windows.
Please manually confugure you operating system to use this proxy's port and address.");
} }
validateEndPointAsSystemProxy(endPoint); validateEndPointAsSystemProxy(endPoint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment