1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

propagate error

This commit is contained in:
Darien Raymond 2018-11-14 19:17:11 +01:00
parent 16102271dd
commit 585608a796
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -72,7 +72,7 @@ func NewChunkReader(reader io.Reader, auth *Authenticator) *ChunkReader {
func (v *ChunkReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
size, err := serial.ReadUint16(v.reader)
if err != nil {
return nil, newError("failed to read size")
return nil, newError("failed to read size").Base(err)
}
size += AuthSize