[Modify] Polish it
This commit is contained in:
parent
b7b39203e9
commit
0ee98f8758
@ -474,13 +474,14 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!value.IsEnclosedIn ('"'))
|
if (!value.IsEnclosedIn ('"')) {
|
||||||
throw new CookieException (
|
var msg = "The value is not enclosed in double quotes.";
|
||||||
"The value specified for the Port attribute isn't enclosed in double quotes.");
|
throw new CookieException (msg);
|
||||||
|
}
|
||||||
|
|
||||||
int[] ports;
|
int[] ports;
|
||||||
if (!tryCreatePorts (value, out ports)) {
|
if (!tryCreatePorts (value, out ports)) {
|
||||||
var msg = "The value specified for the Port attribute contains an invalid value.";
|
var msg = "The value could not be parsed.";
|
||||||
throw new CookieException (msg);
|
throw new CookieException (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user