MCPcopy Index your code
hub / github.com/HisMax/RedInk / readErrorResponse

Function readErrorResponse

frontend/src/api/client.ts:37–43  ·  view source on GitHub ↗
(response: Response, fallback: string)

Source from the content-addressed store, hash-verified

35}
36
37export async function readErrorResponse(response: Response, fallback: string) {
38 try {
39 return await response.json()
40 } catch {
41 return new Error(fallback)
42 }
43}
44
45export async function readSseResponse(
46 response: Response,

Callers 2

retryFailedImagesFunction · 0.90
generateImagesPostFunction · 0.90

Calls 1

jsonMethod · 0.45

Tested by

no test coverage detected