fix: isNetworkError should use errors.As, not a bare type assertion #84

Merged
benvin merged 1 commits from benvin/isnetworkerror-errors-as into master 2026-07-02 20:18:24 +10:00

1 Commits

Author SHA1 Message Date
unkinben b125630a86 fix: detect UpstreamError with errors.As in isNetworkError
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
The stale-on-error path used a bare type assertion, which fails if the
UpstreamError is ever wrapped. Use errors.As so wrapping is handled.

Refs #68
2026-07-02 00:27:43 +10:00