[ci skip] style: give exception message a variable to remove concat

This commit is contained in:
Oliver Booth 2024-02-12 22:57:19 +00:00
parent 1485578088
commit 45111aae72
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 3 additions and 2 deletions

View File

@ -101,8 +101,9 @@ public sealed class ProtocolClient : ClientNode
{
Close();
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;