MCPcopy Create free account
hub / github.com/codeaashu/claude-code / toError

Method toError

src/ink/ink.tsx:1576–1576  ·  view source on GitHub ↗
(...args: unknown[])

Source from the content-addressed store, hash-verified

1574 const originals: Partial<Record<keyof Console, Console[keyof Console]>> = {};
1575 const toDebug = (...args: unknown[]) => logForDebugging(`console.log: ${format(...args)}`);
1576 const toError = (...args: unknown[]) => logError(new Error(`console.error: ${format(...args)}`));
1577 for (const m of CONSOLE_STDOUT_METHODS) {
1578 originals[m] = con[m];
1579 con[m] = toDebug;

Callers

nothing calls this directly

Calls 1

logErrorFunction · 0.50

Tested by

no test coverage detected