From bee3ced4f5761b06c8dde1a327dd67b88768d27b Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Tue, 27 Aug 2024 07:46:24 -0700 Subject: [PATCH] chore: output code with error (#352) --- p2p/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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