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

Function onError

packages/effect/src/unstable/http/Multipart.ts:484–486  ·  view source on GitHub ↗
(error_)

Source from the content-addressed store, hash-verified

482 }
483 },
484 onError(error_) {
485 exit = Option.some(Exit.fail(convertError(error_)))
486 },
487 onDone() {
488 if (Option.isNone(exit)) {
489 exit = Option.some(Exit.fail(Cause.Done()))

Callers 2

makeFunction · 0.50
stopFunction · 0.50

Calls 3

someMethod · 0.80
convertErrorFunction · 0.70
failMethod · 0.45

Tested by

no test coverage detected