Skip to content

Commit

Permalink
fix(swarm): incorrect error message format order (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
cokemine authored Nov 13, 2024
1 parent f3fa48e commit 88e2f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/net/swarm/swarm_dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (s *Swarm) dialAddr(ctx context.Context, p peer.ID, addr ma.Multiaddr, updC
// Trust the transport? Yeah... right.
if connC.RemotePeer() != p {
connC.Close()
err = fmt.Errorf("BUG in transport %T: tried to dial %s, dialed %s", p, connC.RemotePeer(), tpt)
err = fmt.Errorf("BUG in transport %T: tried to dial %s, dialed %s", tpt, p, connC.RemotePeer())
log.Error(err)
return nil, err
}
Expand Down

0 comments on commit 88e2f7a

Please sign in to comment.