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

Function errorForReport

packages/server-e2e/src/ws.ts:267–275  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

265}
266
267function errorForReport(error: unknown): unknown {
268 if (error instanceof Error) {
269 return {
270 name: error.name,
271 message: error.message,
272 };
273 }
274 return error;
275}

Callers 2

openMethod · 0.70
_onMessageMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected