MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / errorForReport

Function errorForReport

packages/server-e2e/src/report.ts:654–662  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

652}
653
654function errorForReport(error: unknown): unknown {
655 if (error instanceof Error) {
656 return {
657 name: error.name,
658 message: error.message,
659 };
660 }
661 return error;
662}

Callers 1

fetchWithReportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected