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

Function onFailure

packages/effect/src/http/HttpEffect.ts:128–131  ·  view source on GitHub ↗
(cause)

Source from the content-addressed store, hash-verified

126 responded :
127 Effect.matchCauseEffect(tracer(middleware(responded)), {
128 onFailure(cause) {
129 reportServerCauseUnsafe(Fiber.getCurrent()!, cause)
130 return handledSymbol in request ? Effect.void : sendCause(frame, cause)
131 },
132 onSuccess(response) {
133 return handledSymbol in request ? Effect.void : sendUnhandled(frame, response)
134 }

Callers

nothing calls this directly

Calls 2

reportServerCauseUnsafeFunction · 0.85
sendCauseFunction · 0.85

Tested by

no test coverage detected