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

Function onError

packages/platform/node-shared/src/NodeStream.ts:351–354  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

349 latch.openUnsafe()
350 }
351 function onError(error: unknown) {
352 exit.current = Exit.fail(options.onError(error))
353 latch.openUnsafe()
354 }
355 function onEnd() {
356 exit.current = Exit.fail(Cause.Done())
357 latch.openUnsafe()

Callers 2

toStringFunction · 0.70
toArrayBufferFunction · 0.70

Calls 3

onErrorMethod · 0.80
openUnsafeMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected