MCPcopy Create free account
hub / github.com/cortexkit/magic-context / jsoncErrorMessage

Function jsoncErrorMessage

packages/dashboard/src/lib/jsonc.ts:7–9  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

5}
6
7export function jsoncErrorMessage(error: unknown): string {
8 return error instanceof Error ? error.message : String(error);
9}
10
11function parseRoot(text: string): Record<string, unknown> {
12 const source = text.trim() === "" ? "{}\n" : text;

Callers 6

parseConfigContentFunction · 0.90
handleSaveFunction · 0.90
revertToInheritedFunction · 0.90
toggleTaskFunction · 0.90
parseRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected