Consistently use `context()` to preserve sources for anyhow errors (#59112)

When you use `anyhow::anyhow!("{error}")` to convert a preexisting error
to an `anyhow::Error`, the error source can be lost (depending on the
`Display` impl of the error). Anyhow errors can display the whole source
chain when printed. This commit makes us consistently use `context()`
instead to preserve the underlying error's source.

Release Notes:

- N/A
2ab35c6b7dTom Houlé committed on 7/8/2026, 12:20:52 PM· committed by GitHubparentbc3c942
4 files changedLine totals unavailable