[Fix] It must be the name of the parameter

This commit is contained in:
sta 2018-06-12 19:14:29 +09:00
parent 955de3d7bc
commit af4319b66c

View File

@ -615,12 +615,12 @@ namespace WebSocketSharp
Uri uri;
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
msg = "Not an absolute URI string.";
throw new ArgumentException (msg, value);
throw new ArgumentException (msg, "value");
}
if (uri.Segments.Length > 1) {
msg = "It includes the path segments.";
throw new ArgumentException (msg, value);
throw new ArgumentException (msg, "value");
}
}