b125630a86
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