Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ fail
Function
fail
packages/effect/src/internal/layer.ts:547–547 ·
view source on GitHub ↗
(error: E)
Source
from the content-addressed store, hash-verified
545
546
/** @internal */
547
export
const
fail = <E>(error: E): Layer.Layer<unknown, E> => failCause(Cause.fail(error))
548
549
/** @internal */
550
export
const
failSync = <E>(evaluate: LazyArg<E>): Layer.Layer<unknown, E> =>
Callers
nothing calls this directly
Calls
2
failCause
Function · 0.70
fail
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…