MCPcopy Index your code
hub / github.com/Effect-TS/effect / onFailure

Function onFailure

packages/platform/src/internal/httpClient.ts:225–230  ·  view source on GitHub ↗
(cause)

Source from the content-addressed store, hash-verified

223 return Effect.succeed(new InterruptibleResponse(response, controller))
224 },
225 onFailure(cause) {
226 if (Cause.isInterrupted(cause)) {
227 controller.abort()
228 }
229 return Effect.failCause(cause)
230 }
231 })
232 )
233 }

Callers

nothing calls this directly

Calls 2

isInterruptedMethod · 0.80
failCauseMethod · 0.80

Tested by

no test coverage detected