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

Function onStreamError

packages/platform/node-shared/src/NodeSink.ts:118–121  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

116 const onError = (error: unknown) => Deferred.doneUnsafe(failure, Effect.failSync(() => options.onError(error)))
117 let errorEmitted = false
118 const onStreamError = (error: unknown) => {
119 errorEmitted = true
120 onError(error)
121 }
122 // finished() only reports once, so keep listening for errors from writes
123 // made after the writable has finished.
124 options.writable.on("error", onStreamError)

Callers

nothing calls this directly

Calls 1

onErrorFunction · 0.70

Tested by

no test coverage detected