From f94a18677a8c832d386ea96714c7e58874bb31f9 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Fri, 21 Mar 2014 19:20:26 -0700 Subject: [PATCH] Beam: Send: pass the underlying error unchanged to allow io.EOF detection Docker-DCO-1.1-Signed-off-by: Solomon Hykes (github: shykes) --- pkg/beam/unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/beam/unix.go b/pkg/beam/unix.go index 85b380671f..0cb568a9c3 100644 --- a/pkg/beam/unix.go +++ b/pkg/beam/unix.go @@ -27,7 +27,7 @@ func Receive(conn *net.UnixConn) ([]byte, *os.File, error) { for { data, fds, err := receiveUnix(conn) if err != nil { - return nil, nil, fmt.Errorf("receive: %v", err) + return nil, nil, err } var f *os.File if len(fds) > 1 {