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

Function toError

packages/core/src/cross-spawn-spawner.ts:30–30  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

28import { filesystem, path } from "./effect/app-node-platform"
29
30const toError = (err: unknown): Error => (err instanceof globalThis.Error ? err : new globalThis.Error(String(err)))
31
32const toTag = (err: NodeJS.ErrnoException): PlatformError.SystemErrorTag => {
33 switch (err.code) {

Callers 4

setupStdinFunction · 0.85
setupOutputFunction · 0.85
killGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected