From 0ee98f87583ac894450fd11e58783cd5f8048066 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 14 Feb 2019 21:30:55 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/Cookie.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 6e0af070..82d39e66 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -474,13 +474,14 @@ namespace WebSocketSharp.Net return; } - if (!value.IsEnclosedIn ('"')) - throw new CookieException ( - "The value specified for the Port attribute isn't enclosed in double quotes."); + if (!value.IsEnclosedIn ('"')) { + var msg = "The value is not enclosed in double quotes."; + throw new CookieException (msg); + } int[] 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); }