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

Function fail

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

Source from the content-addressed store, hash-verified

1088 * @since 2.0.0
1089 */
1090export function fail(err: SourceError | Schema.SchemaError) {
1091 return make(() => Effect.fail(evaluationFailure(new ConfigError(err), false)))
1092}
1093
1094/**
1095 * Creates a config that always succeeds with the given value, ignoring the

Callers

nothing calls this directly

Calls 3

evaluationFailureFunction · 0.85
makeFunction · 0.70
failMethod · 0.45

Tested by

no test coverage detected