[ci skip] style: give exception message a variable to remove concat
This commit is contained in:
parent
1485578088
commit
45111aae72
|
@ -101,8 +101,9 @@ public sealed class ProtocolClient : ClientNode
|
||||||
{
|
{
|
||||||
Close();
|
Close();
|
||||||
IsConnected = false;
|
IsConnected = false;
|
||||||
throw new InvalidOperationException("Handshake failed. " +
|
|
||||||
$"Server responded with {handshakeResponse.HandshakeResponse:D}");
|
var message = $"Handshake failed. Server responded with {handshakeResponse.HandshakeResponse:D}";
|
||||||
|
throw new InvalidOperationException(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
State = ClientState.Encrypting;
|
State = ClientState.Encrypting;
|
||||||
|
|
Loading…
Reference in New Issue