Skip to content

Commit 6c89aea

Browse files
committed
Better error msg
1 parent de1f390 commit 6c89aea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/postgres_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ func (r *PostgresReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
139139
}
140140

141141
if err := r.CreateOrUpdateOperator(ctx, instance); err != nil {
142-
r.recorder.Eventf(instance, "Warning", "Error", "failed to install operator: %v", err)
143-
return ctrl.Result{}, fmt.Errorf("error while installing zalando dependencies: %w", err)
142+
r.recorder.Eventf(instance, "Warning", "Error", "failed to install or update operator: %v", err)
143+
return ctrl.Result{}, fmt.Errorf("failed to install or update operator: %w", err)
144144
}
145145

146146
if err := r.createOrUpdateZalandoPostgresql(ctx, instance, log); err != nil {

0 commit comments

Comments
 (0)