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:
parent
16102271dd
commit
585608a796
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user