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

Function toError

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

Source from the content-addressed store, hash-verified

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

Callers 2

reportErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected