Skip to content

Commit

Permalink
core: fix error message
Browse files Browse the repository at this point in the history
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 <seb@redhat.com>
(cherry picked from commit 4f1a2d4)
  • Loading branch information
leseb authored and mergify-bot committed Dec 8, 2021
1 parent 4ff60b2 commit cacea9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operator/ceph/cluster/mon/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func CreateOrLoadClusterInfo(clusterdContext *clusterd.Context, namespace string

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")
}

err = createClusterAccessSecret(clusterdContext.Clientset, namespace, clusterInfo, ownerInfo)
Expand Down

0 comments on commit cacea9b

Please sign in to comment.