MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toError

Function toError

apps/cli/src/main.ts:266–267  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

264const cliPrefix = isDevMode ? `bun run ${script}` : "executor";
265
266const toError = (cause: unknown): Error =>
267 cause instanceof Error ? cause : new Error(String(cause));
268
269interface ServerTarget {
270 readonly baseUrl?: string;

Callers 2

reportErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected