diff --git a/router/local_peer.go b/router/local_peer.go index 13ff253a..c7218ea6 100644 --- a/router/local_peer.go +++ b/router/local_peer.go @@ -162,7 +162,7 @@ func (peer *LocalPeer) handleAddConnection(conn Connection) error { log.Fatal("Attempt made to add connection to peer with unknown remote peer") } toName := conn.Remote().Name - dupErr := fmt.Errorf("Multiple connections to %s added to %s", conn.Remote(), peer) + dupErr := fmt.Errorf("Multiple connections to %s added to %s", conn.Remote(), peer.String()) // deliberately non symmetrical if dupConn, found := peer.connections[toName]; found { if dupConn == conn {