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

Function toError

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

Source from the content-addressed store, hash-verified

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

Callers 2

reportErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected