basalt / drives-google/src / googleFailure
Function: googleFailure()
> googleFailure(response, context): Promise<never>
Defined in: drives-google/src/errors.ts:151
Turns a failed Google response into the contract's error for it.
Always consumes the body: a response left unread holds a socket open until the timeout, and an error path is exactly where that is least likely to be noticed. The URL is never read out of the response or put in an error — a Drive download URL is a bearer credential.
Parameters
response
context
Returns
Promise<never>