Skip to content

Commit e6162cf

Browse files
authored
Merge pull request #164 from briantkennedy/fix
Unwrap error when checking for not found.
2 parents 4ba4cad + 4040df9 commit e6162cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/patterns/declarative/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func (r *Reconciler) reconcileExists(ctx context.Context, name types.NamespacedN
201201
for _, obj := range objects.Items {
202202

203203
unstruct, err := GetObjectFromCluster(obj, r)
204-
if err != nil && !apierrors.IsNotFound(err) {
204+
if err != nil && !apierrors.IsNotFound(errors.Unwrap(err)) {
205205
log.WithValues("name", obj.Name).Error(err, "Unable to get resource")
206206
}
207207
if unstruct != nil {

0 commit comments

Comments
 (0)