Skip to content

Commit

Permalink
fix: Avoid logging two errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baarsgaard committed Dec 16, 2024
1 parent 32d8402 commit 286fa02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/grafanafolder_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ func (r *GrafanaFolderReconciler) Reconcile(ctx context.Context, req ctrl.Reques
}
return ctrl.Result{}, nil
}
controllerLog.Error(err, "error getting grafana folder cr")
return ctrl.Result{RequeueAfter: RequeueDelay}, err
return ctrl.Result{RequeueAfter: RequeueDelay}, fmt.Errorf("error getting grafana folder cr: %w", err)
}
defer func() {
folder.Status.Hash = folder.Hash()
Expand Down

0 comments on commit 286fa02

Please sign in to comment.