From 1eea3f2f972f76beafe4d29533d9702104e205c9 Mon Sep 17 00:00:00 2001 From: RalfHammer <119853077+RalfHammer@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:19:42 +0200 Subject: [PATCH] fix error message --- internal/controllers/servicebinding_controller.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/controllers/servicebinding_controller.go b/internal/controllers/servicebinding_controller.go index ffe35ec..7295961 100644 --- a/internal/controllers/servicebinding_controller.go +++ b/internal/controllers/servicebinding_controller.go @@ -222,9 +222,8 @@ func (r *ServiceBindingReconciler) Reconcile(ctx context.Context, req ctrl.Reque serviceBinding.SetReadyCondition(cfv1alpha1.ConditionUnknown, string(cfbinding.State), cfbinding.StateDescription) return ctrl.Result{Requeue: true}, nil } else if cfbinding != nil && cfbinding.State != facade.BindingStateReady { - - //return the reconcile function to not reconcile and error message - return ctrl.Result{}, fmt.Errorf("orphaned instance is not ready to be adopted") + // return the reconcile function to not reconcile and error message + return ctrl.Result{}, fmt.Errorf("orphaned binding is not ready to be adopted") } } }