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

Closed
opened 2026-07-02 00:20:16 +10:00 by unkinben · 0 comments
Owner

internal/proxy/engine.go:433 type-asserts err.(*UpstreamError) directly. If the error is ever wrapped, stale-on-error handling silently breaks. Use errors.As.

`internal/proxy/engine.go:433` type-asserts `err.(*UpstreamError)` directly. If the error is ever wrapped, stale-on-error handling silently breaks. Use `errors.As`.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#68