[Modify] Replace it

This commit is contained in:
sta 2019-02-13 21:25:18 +09:00
parent ac12a0e32b
commit b7b39203e9

View File

@ -479,13 +479,8 @@ namespace WebSocketSharp.Net
"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; int[] ports;
string err; if (!tryCreatePorts (value, out ports)) {
if (!tryCreatePorts (value, out ports, out err)) { var msg = "The value specified for the Port attribute contains an invalid value.";
var msg = String.Format (
"The value specified for the Port attribute contains an invalid value: {0}",
err
);
throw new CookieException (msg); throw new CookieException (msg);
} }