[Modify] Polish it
This commit is contained in:
parent
244057bb23
commit
7059a70cdb
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user