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

Function extractError

packages/agent-core/src/logging/formatter.ts:196–200  ·  view source on GitHub ↗
(value: Error)

Source from the content-addressed store, hash-verified

194}
195
196export function extractError(value: Error): { message: string; stack?: string } {
197 return typeof value.stack === 'string'
198 ? { message: value.message, stack: value.stack }
199 : { message: value.message };
200}

Callers 2

formatter.test.tsFile · 0.90
resolvePayloadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected