[Modify] Polish it

This commit is contained in:
sta 2020-09-30 19:44:57 +09:00
parent 3994199257
commit e268168e6a

View File

@ -104,8 +104,11 @@ namespace WebSocketSharp.Net
throw new HttpListenerException (87, msg);
}
if (!port.IsPortNumber ())
throw new HttpListenerException (87, "Includes an invalid port.");
if (!port.IsPortNumber ()) {
var msg = "The URI prefix includes an invalid port.";
throw new HttpListenerException (87, msg);
}
var path = pref.Path;