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

Function toError

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

Source from the content-addressed store, hash-verified

247const cliPrefix = isDevMode ? `bun run ${script}` : "executor";
248
249const toError = (cause: unknown): Error =>
250 cause instanceof Error ? cause : new Error(String(cause));
251
252interface ServerTarget {
253 readonly baseUrl?: string;

Callers 2

reportErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected