Prefer the abort reason when fetch/S3 rejects with AbortError (Node/undici). AbortController.abort(reason) may set cause to a non-Error (e.g. string); preserve it when present.
reason
AbortError
AbortController.abort(reason)
cause
Prefer the abort
reasonwhen fetch/S3 rejects withAbortError(Node/undici).AbortController.abort(reason)may setcauseto a non-Error (e.g. string); preserve it when present.