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

Function hasParsedApiErrorDetails

common/src/util/error.ts:311–321  ·  view source on GitHub ↗
(
  details: ReturnType<typeof parseApiErrorResponseBody>,
)

Source from the content-addressed store, hash-verified

309}
310
311function hasParsedApiErrorDetails(
312 details: ReturnType<typeof parseApiErrorResponseBody>,
313): boolean {
314 return (
315 details.errorCode !== undefined ||
316 details.message !== undefined ||
317 details.countryCode !== undefined ||
318 details.countryBlockReason !== undefined ||
319 details.ipPrivacySignals !== undefined
320 )
321}
322
323/**
324 * Extracts HTTP status and structured server error fields from API errors,

Callers 1

extractApiErrorDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected