[Fix] It must be the name of the parameter
This commit is contained in:
parent
955de3d7bc
commit
af4319b66c
@ -615,12 +615,12 @@ namespace WebSocketSharp
|
|||||||
Uri uri;
|
Uri uri;
|
||||||
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
|
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
|
||||||
msg = "Not an absolute URI string.";
|
msg = "Not an absolute URI string.";
|
||||||
throw new ArgumentException (msg, value);
|
throw new ArgumentException (msg, "value");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uri.Segments.Length > 1) {
|
if (uri.Segments.Length > 1) {
|
||||||
msg = "It includes the path segments.";
|
msg = "It includes the path segments.";
|
||||||
throw new ArgumentException (msg, value);
|
throw new ArgumentException (msg, "value");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user