From 2018fca931f54545d0bc9304d1d2ac070e92907d Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 7 Jan 2016 15:31:04 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocket.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 624b7e9e..20b9e276 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2549,9 +2549,11 @@ namespace WebSocketSharp if (len < length) _logger.Warn ( String.Format ( - "The data with 'length' cannot be read from 'stream':\n expected: {0}\n actual: {1}", + "The length of the data is less than 'length':\n expected: {0}\n actual: {1}", length, - len)); + len + ) + ); var sent = send (Opcode.Binary, new MemoryStream (data)); if (completed != null) @@ -2560,7 +2562,8 @@ namespace WebSocketSharp ex => { _logger.Error (ex.ToString ()); error ("An exception has occurred while sending data.", ex); - }); + } + ); } ///