mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/protocols: log protocol spec on error
This commit is contained in:
parent
f545e1ddad
commit
a05e6d2d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ func (p *Peer) Send(ctx context.Context, msg interface{}) error {
|
|||
|
||||
code, found := p.spec.GetCode(msg)
|
||||
if !found {
|
||||
return errorf(ErrInvalidMsgType, "%v", code)
|
||||
return errorf(ErrInvalidMsgType, "%v %s", code, p.spec.Name)
|
||||
}
|
||||
return p2p.Send(p.rw, code, wmsg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue