#625 Changes Error Message when trying to reuse stream

This commit is contained in:
Justin Kotalik 2016-06-15 15:33:24 -07:00
parent 3865136b97
commit 8f3d894b95
1 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ namespace Microsoft.AspNetCore.WebUtilities
PositionInnerStream();
if (!_innerStream.EnsureBuffered(_boundary.FinalBoundaryLength))
{
throw new IOException("Unexpected end of stream.");
throw new IOException("Unexpected end of Stream, the content may have already been read by another component. ");
}
var bufferedData = _innerStream.BufferedData;
@ -280,7 +280,7 @@ namespace Microsoft.AspNetCore.WebUtilities
PositionInnerStream();
if (!await _innerStream.EnsureBufferedAsync(_boundary.FinalBoundaryLength, cancellationToken))
{
throw new IOException("Unexpected end of stream.");
throw new IOException("Unexpected end of Stream, the content may have already been read by another component. ");
}
var bufferedData = _innerStream.BufferedData;