MCPcopy Index your code
hub / github.com/anomalyco/opencode / serializeError

Function serializeError

packages/desktop/src/main/sidecar.ts:148–151  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

146}
147
148function serializeError(error: unknown) {
149 if (error instanceof Error) return { message: error.message, stack: error.stack }
150 return { message: String(error) }
151}
152
153function getParentPort() {
154 const port = process.parentPort as ParentPort | undefined

Callers 1

startFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected