From 8a655975326a43cecae4e4888ba136beff022828 Mon Sep 17 00:00:00 2001 From: minhd-vu Date: Tue, 20 Aug 2024 00:57:13 -0400 Subject: [PATCH] output code with error --- 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