[Modify] Polish it

This commit is contained in:
sta 2019-02-11 22:46:41 +09:00
parent 244057bb23
commit 7059a70cdb

View File

@ -478,13 +478,19 @@ namespace WebSocketSharp.Net
throw new CookieException ( throw new CookieException (
"The value specified for the Port attribute isn't enclosed in double quotes."); "The value specified for the Port attribute isn't enclosed in double quotes.");
int[] ports;
string err; string err;
if (!tryCreatePorts (value, out _ports, out err)) if (!tryCreatePorts (value, out ports, out err)) {
throw new CookieException ( var msg = String.Format (
String.Format ( "The value specified for the Port attribute contains an invalid value: {0}",
"The value specified for the Port attribute contains an invalid value: {0}", err)); err
);
throw new CookieException (msg);
}
_port = value; _port = value;
_ports = ports;
} }
} }