Fixup a few calls for adding clues to errors (#4989)

Called functions add clues so there's no need to add them ourselves.

---

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No

#### Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [x] 🧹 Tech Debt/Cleanup

#### Test Plan

- [ ] 💪 Manual
- [x]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2024-01-08 15:04:35 -08:00 committed by GitHub
parent d953ca6c41
commit 584fc21d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ func (cr *containerResolver) refreshContainer(
return nil, true, nil
} else if err != nil {
// This is some other error, just return it.
return nil, false, clues.WrapWC(ctx, err, "refreshing container")
return nil, false, clues.Wrap(err, "refreshing container")
}
return c, false, nil
@ -218,7 +218,7 @@ func (cr *containerResolver) idToPath(
locPath: nil,
cached: true,
deleted: false,
}, clues.WrapWC(ctx, err, "refreshing container")
}, clues.Wrap(err, "refreshing container")
}
if shouldDelete {