From 585608a796022c351a41bb82650a7e16591a2e0c Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 14 Nov 2018 19:17:11 +0100 Subject: [PATCH] propagate error --- proxy/shadowsocks/ota.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/shadowsocks/ota.go b/proxy/shadowsocks/ota.go index 106e1311..7a5cf1b4 100644 --- a/proxy/shadowsocks/ota.go +++ b/proxy/shadowsocks/ota.go @@ -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