MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hasNestedError

Function hasNestedError

source code/services/api/errorUtils.ts:153–161  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected