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

Function wrapError

packages/core/src/process.ts:90–91  ·  view source on GitHub ↗
(description: string, cause: unknown)

Source from the content-addressed store, hash-verified

88}
89
90const wrapError = (description: string, cause: unknown): AppProcessError =>
91 cause instanceof AppProcessError ? cause : new AppProcessError({ command: description, cause })
92
93export const abortError = (signal: AbortSignal): Error => {
94 const reason = signal.reason

Callers 2

runCommandFunction · 0.85
runStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected