Skip to content

Commit

Permalink
chore: output code with error (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu authored Aug 27, 2024
1 parent f764fbd commit bee3ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bee3ced

Please sign in to comment.