1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -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) { func (v *ChunkReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
size, err := serial.ReadUint16(v.reader) size, err := serial.ReadUint16(v.reader)
if err != nil { if err != nil {
return nil, newError("failed to read size") return nil, newError("failed to read size").Base(err)
} }
size += AuthSize size += AuthSize