server: Fix error message format when detailing cluster metadata. (#24874)

This commit is contained in:
James Rasell
2025-01-16 14:54:42 +01:00
committed by GitHub
parent 1ae9785f9b
commit 03cbe7cd71

View File

@@ -2172,7 +2172,7 @@ func (s *Server) ClusterMetadata() (structs.ClusterMetadata, error) {
// if we are not the leader, nothing more we can do
if !s.IsLeader() {
return structs.ClusterMetadata{}, errors.New("cluster ID not ready {}yet")
return structs.ClusterMetadata{}, errors.New("cluster ID not ready yet")
}
// we are the leader, try to generate the ID now