basalt / drives-microsoft/src / graphFailure
Function: graphFailure()
> graphFailure(response, context): Promise<never>
Defined in: drives-microsoft/src/errors.ts:82
Turns a failed Graph 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.
Parameters
response
context
Returns
Promise<never>