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:
parent
d953ca6c41
commit
584fc21d36
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user