MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / normalizeError

Function normalizeError

apps/cli/src/commands/cli/run.ts:48–50  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

46}
47
48function normalizeError(error: unknown): Error {
49 return error instanceof Error ? error : new Error(String(error))
50}
51
52export async function run(promptArg: string | undefined, flagOptions: FlagOptions) {
53 setLogger({

Callers 2

onUnhandledRejectionFunction · 0.85
runFunction · 0.85

Calls 1

StringInterface · 0.50

Tested by

no test coverage detected