MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getApiErrorResponseBody

Function getApiErrorResponseBody

common/src/util/error.ts:305–309  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

303}
304
305function getApiErrorResponseBody(error: unknown): unknown {
306 if (!error || typeof error !== 'object') return undefined
307 if (!('responseBody' in error)) return undefined
308 return (error as { responseBody: unknown }).responseBody
309}
310
311function hasParsedApiErrorDetails(
312 details: ReturnType<typeof parseApiErrorResponseBody>,

Callers 1

extractApiErrorDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected