Skip to content

Commit

Permalink
add missing error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Wilcsinszky <peter.wilcsinszky@axoflow.com>
  • Loading branch information
pepov committed Feb 9, 2024
1 parent e5b9ba7 commit 5ffa49f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/resources/fluentbit/tenants.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ func (r *Reconciler) configureOutputsForTenants(ctx context.Context, tenants []v
return errors.WrapIf(err, "getting logging resource")
}

loggingResources, errs := r.loggingResourcesRepo.LoggingResourcesFor(ctx, *logging)
if errs != nil {

loggingResources, err := r.loggingResourcesRepo.LoggingResourcesFor(ctx, *logging)
if err != nil {
errs = errors.Append(errs, errors.WrapIff(err, "querying related resources for logging %s", logging.Name))
continue
}

if loggingResources.GetFluentdSpec() != nil {
Expand Down

0 comments on commit 5ffa49f

Please sign in to comment.