diff --git a/pkg/tcp/textproto.go b/pkg/tcp/textproto.go index 4e35ff9b..5afe7628 100644 --- a/pkg/tcp/textproto.go +++ b/pkg/tcp/textproto.go @@ -2,7 +2,6 @@ package tcp import ( "bufio" - "errors" "fmt" "io" "net/textproto" @@ -50,7 +49,7 @@ func ReadResponse(r *bufio.Reader) (*Response, error) { ss := strings.SplitN(line, " ", 3) if len(ss) != 3 { - return nil, errors.New("malformed response") + return nil, fmt.Errorf("malformed response: %s", line) } res := &Response{