[Modify] Polish it

This commit is contained in:
sta 2016-01-07 15:31:04 +09:00
parent af155532c6
commit 2018fca931

View File

@ -2549,9 +2549,11 @@ namespace WebSocketSharp
if (len < length) if (len < length)
_logger.Warn ( _logger.Warn (
String.Format ( 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, length,
len)); len
)
);
var sent = send (Opcode.Binary, new MemoryStream (data)); var sent = send (Opcode.Binary, new MemoryStream (data));
if (completed != null) if (completed != null)
@ -2560,7 +2562,8 @@ namespace WebSocketSharp
ex => { ex => {
_logger.Error (ex.ToString ()); _logger.Error (ex.ToString ());
error ("An exception has occurred while sending data.", ex); error ("An exception has occurred while sending data.", ex);
}); }
);
} }
/// <summary> /// <summary>