From dc8e0a12d6f50bd5eb69399233ce4425ba556a8d Mon Sep 17 00:00:00 2001 From: Jeff Pihach Date: Tue, 5 Apr 2022 17:34:37 -0600 Subject: [PATCH] Show the user the actual data directory to remove when trying to join to the wrong cluster. (#11754) --- lib/service/connect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/service/connect.go b/lib/service/connect.go index 403902b86f111..8473fb17c0c27 100644 --- a/lib/service/connect.go +++ b/lib/service/connect.go @@ -171,7 +171,7 @@ func (process *TeleportProcess) connect(role types.SystemRole) (conn *Connector, // made. So provide a more user friendly error as a hint of what // they can do to resolve the issue. if strings.Contains(err.Error(), "certificate signed by unknown authority") { - process.log.Error("Was this node already registered to a different cluster? To join this node to a new cluster, remove `/var/lib/teleport` and try again") + process.log.Errorf("Was this node already registered to a different cluster? To join this node to a new cluster, remove `%s` and try again", process.Config.DataDir) } return nil, trace.Wrap(err) }