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:548–548 ·
view source on GitHub ↗
(error: E)
Source
from the content-addressed store, hash-verified
546
547
/** @internal */
548
export
const
fail = <E>(error: E): Layer.Layer<unknown, E> => failCause(Cause.fail(error))
549
550
/** @internal */
551
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