Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Apr 2, 2021
1 parent e5ff01e commit c572b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/clusterctl/client/cluster/mover.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func setClusterPause(proxy Proxy, clusters []*node, value bool, dryRun bool) err
if err := retryWithExponentialBackoff(setClusterPauseBackoff, func() error {
return patchCluster(proxy, cluster, patch)
}); err != nil {
return err
return errors.Wrapf(err, "error setting Cluster.Spec.Paused=%t", value)
}
}
return nil
Expand All @@ -375,7 +375,7 @@ func patchCluster(proxy Proxy, cluster *node, patch client.Patch) error {
}

if err := cFrom.Patch(ctx, clusterObj, patch); err != nil {
return errors.Wrapf(err, "error pausing reconciliation for %q %s/%s",
return errors.Wrapf(err, "error patching %q %s/%s",
clusterObj.GroupVersionKind(), clusterObj.GetNamespace(), clusterObj.GetName())
}

Expand Down

0 comments on commit c572b96

Please sign in to comment.