MCPcopy Index your code
hub / github.com/codeaashu/claude-code / extractErrorTypeFromData

Function extractErrorTypeFromData

src/bridge/bridgeApi.ts:526–539  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

524}
525
526function extractErrorTypeFromData(data: unknown): string | undefined {
527 if (data && typeof data === 'object') {
528 if (
529 'error' in data &&
530 data.error &&
531 typeof data.error === 'object' &&
532 'type' in data.error &&
533 typeof data.error.type === 'string'
534 ) {
535 return data.error.type
536 }
537 }
538 return undefined
539}
540
541

Callers 1

handleErrorStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected