diff --git a/src/IceRpc/Internal/IceProtocolConnection.cs b/src/IceRpc/Internal/IceProtocolConnection.cs index fe650516a4..c162607f93 100644 --- a/src/IceRpc/Internal/IceProtocolConnection.cs +++ b/src/IceRpc/Internal/IceProtocolConnection.cs @@ -1209,7 +1209,7 @@ private async Task ReadFramesAsync(CancellationToken cancellationToken) if (prologue.FrameSize > _maxFrameSize) { throw new InvalidDataException( - $"Received frame with size ({prologue.FrameSize}) greater than max frame size."); + $"Received frame with size ({prologue.FrameSize}) greater than {nameof(ConnectionOptions.MaxIceFrameSize)} ({_maxFrameSize})."); } if (prologue.FrameSize < IceDefinitions.PrologueSize) {