diff --git a/p2p/types.go b/p2p/types.go index a3efe805..98197d18 100644 --- a/p2p/types.go +++ b/p2p/types.go @@ -160,7 +160,7 @@ type rlpxConn struct { func (c *rlpxConn) Read() Message { code, rawData, _, err := c.Conn.Read() if err != nil { - return errorf("could not read from connection: %v", err) + return errorf("could not read from connection: %v, code: %d", err, code) } var msg Message