MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / formatError

Function formatError

packages/worker-utils/src/format-error.ts:4–9  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

2 * Format an error for structured logging with message and optional stack trace.
3 */
4export function formatError(error: unknown): { error: string; stack?: string } {
5 if (error instanceof Error) {
6 return { error: error.message, stack: error.stack };
7 }
8 return { error: String(error) };
9}

Callers 15

enqueueRunMessagesFunction · 0.90
processDeciderJobFunction · 0.90
failedRowFunction · 0.90
finalizeRunIfCompleteFunction · 0.90
routing-table.tsFile · 0.90
getRoutingTableFunction · 0.90
summarizeOutcomeFunction · 0.90
failClosedFunction · 0.90
getCodingPlanPreferenceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected