From 0e28e48c8d06c3408fb8dcb84008c60fed294b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 8 Dec 2021 17:30:49 +0100 Subject: [PATCH] core: fix error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's have a more accurate and correct error message that reflects what the failing function tried to do. Signed-off-by: Sébastien Han (cherry picked from commit 4f1a2d47a41f6ef9fa5ad44af1eef3e630dc67ad) --- pkg/operator/ceph/cluster/mon/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/cluster/mon/config.go b/pkg/operator/ceph/cluster/mon/config.go index b9feb3ea9..56c9d23ac 100644 --- a/pkg/operator/ceph/cluster/mon/config.go +++ b/pkg/operator/ceph/cluster/mon/config.go @@ -104,7 +104,7 @@ func CreateOrLoadClusterInfo(clusterdContext *clusterd.Context, context context. clusterInfo, err = createNamedClusterInfo(clusterdContext, namespace) if err != nil { - return nil, maxMonID, monMapping, errors.Wrap(err, "failed to create mon secrets") + return nil, maxMonID, monMapping, errors.Wrap(err, "failed to create initial cluster info") } clusterInfo.Context = context