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

Function hasNestedError

src/services/api/errorUtils.ts:151–159  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

149}
150
151function hasNestedError(value: unknown): value is NestedAPIError {
152 return (
153 typeof value === 'object' &&
154 value !== null &&
155 'error' in value &&
156 typeof value.error === 'object' &&
157 value.error !== null
158 )
159}
160
161/**
162 * Extract a human-readable message from a deserialized API error that lacks

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected