Skip to content

Commit

Permalink
fix(swarm): incorrect error message format order
Browse files Browse the repository at this point in the history
  • Loading branch information
cokemine committed Nov 12, 2024
1 parent 10045d1 commit 1a3e915
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 1a3e915

Please sign in to comment.