MCPcopy Create free account
hub / github.com/Effect-TS/effect / showUserError

Function showUserError

packages/effect/src/unstable/cli/Command.ts:1682–1687  ·  view source on GitHub ↗
(error: CliError.UserError)

Source from the content-addressed store, hash-verified

1680 })
1681
1682const showUserError = (error: CliError.UserError): Effect.Effect<void> =>
1683 Effect.gen(function*() {
1684 const formatter = yield* CliOutput.Formatter
1685 yield* Console.error(formatter.formatError(error))
1686 error[Runtime.errorReported] = false
1687 })
1688
1689/**
1690 * Runs a command using the arguments supplied by the `Stdio` service.

Callers 1

runWithFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected