MCPcopy Index your code
hub / github.com/ginobefun/BestBlogs / StructuredError

Interface StructuredError

cli/src/render/errors.ts:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11import { CliAuthError } from '../config.js'
12
13export interface StructuredError {
14 success: false
15 error: {
16 code: string
17 httpStatus?: number
18 message: string
19 retryable?: boolean
20 requestId?: string | null
21 }
22}
23
24export function toStructuredError(err: unknown): StructuredError {
25 if (err instanceof CliApiError) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected