Skip to content

Commit 9e95327

Browse files
committed
Adds formatting directive for Errorf
1 parent 1a49843 commit 9e95327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/patterns/addon/pkg/status/aggregate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ func (a *aggregator) Reconciled(ctx context.Context, src declarative.Declarative
112112
err = unstructured.SetNestedField(unstruct.Object, statusHealthy, "status", "healthy")
113113
if err != nil {
114114
log.Error(err, "updating status")
115-
return fmt.Errorf("unable to set status in unstructured", err)
115+
return fmt.Errorf("unable to set status in unstructured: %v", err)
116116
}
117117

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

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

0 commit comments

Comments
 (0)