MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getErrorMessage

Function getErrorMessage

integrations/clipper/src/api.ts:196–204  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

194}
195
196async function getErrorMessage(response: Response): Promise<string> {
197 try {
198 const data = (await response.json()) as { message?: string }
199 return data.message ?? `massCode API error: ${response.status}`
200 }
201 catch {
202 return `massCode API error: ${response.status}`
203 }
204}

Callers 1

postCaptureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected