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

Function handleError

packages/platform-node-shared/src/internal/sink.ts:47–49  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

45) =>
46 Effect.suspend(() => {
47 function handleError(err: unknown) {
48 Deferred.unsafeDone(deferred, Effect.fail(onError(err)))
49 }
50 writable.on("error", handleError)
51 return Effect.ensuring(
52 Deferred.await(deferred),

Callers

nothing calls this directly

Calls 3

unsafeDoneMethod · 0.80
failMethod · 0.65
onErrorFunction · 0.50

Tested by

no test coverage detected