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

Function fail

packages/effect/src/Config.ts:935–937  ·  view source on GitHub ↗
(err: SourceError | Schema.SchemaError)

Source from the content-addressed store, hash-verified

933 * @since 2.0.0
934 */
935export function fail(err: SourceError | Schema.SchemaError): Config<never> {
936 return make(() => Effect.fail(new ConfigError(err)))
937}
938
939/**
940 * Creates a config that always succeeds with the given value, ignoring the

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected