From 4e140c98bcb47da1d68cde2a3a851574a6d5c551 Mon Sep 17 00:00:00 2001 From: Derek Menteer Date: Thu, 13 Oct 2022 13:27:21 -0500 Subject: [PATCH] Address PR comments. --- agent/rpc/peering/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/rpc/peering/service.go b/agent/rpc/peering/service.go index 0eb381acfe..c5abb3d9af 100644 --- a/agent/rpc/peering/service.go +++ b/agent/rpc/peering/service.go @@ -486,7 +486,9 @@ func (s *Server) validatePeeringLocality(token *structs.PeeringToken) error { return fmt.Errorf("failed to fetch TLS materials: %w", err) } if serverName == token.ServerName { - return fmt.Errorf("cannot create a peering within the same cluster %q", serverName) + return fmt.Errorf( + "cannot create a peering within the same cluster %q. Refer to the `exported-services` documentation if you want to export between partitions without peering", + serverName) } return nil }