MCPcopy Create free account
hub / github.com/HisMax/RedInk / diagnosticsText

Function diagnosticsText

frontend/src/utils/errors.ts:59–70  ·  view source on GitHub ↗
(error: AppError)

Source from the content-addressed store, hash-verified

57}
58
59export function diagnosticsText(error: AppError): string {
60 const payload = {
61 code: error.code,
62 title: error.title,
63 detail: error.detail,
64 suggestion: error.suggestion,
65 status: error.status,
66 retryable: error.retryable,
67 diagnostics: error.diagnostics || {}
68 }
69 return JSON.stringify(payload, null, 2)
70}
71
72function isAppError(value: any): value is AppError {
73 return !!value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected