Skip to content

Commit

Permalink
Adds formatting directive for Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
somtochiama committed Jul 31, 2020
1 parent 1a49843 commit 9e95327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/patterns/addon/pkg/status/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ func (a *aggregator) Reconciled(ctx context.Context, src declarative.Declarative
err = unstructured.SetNestedField(unstruct.Object, statusHealthy, "status", "healthy")
if err != nil {
log.Error(err, "updating status")
return fmt.Errorf("unable to set status in unstructured", err)
return fmt.Errorf("unable to set status in unstructured: %v", err)
}

err = unstructured.SetNestedStringSlice(unstruct.Object, statusErrors, "status", "errors")
if err != nil {
log.Error(err, "updating status")
return fmt.Errorf("unable to set status in unstructured", err)
return fmt.Errorf("unable to set status in unstructured: %v", err)
}

log.WithValues("name", unstruct.GetName()).WithValues("status", status).Info("updating status")
Expand Down

0 comments on commit 9e95327

Please sign in to comment.