MCPcopy Index your code
hub / github.com/nodejs/node / onError

Function onError

lib/internal/streams/pipeline.js:277–285  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

275
276 // Catch stream errors that occur after pipe/pump has completed.
277 function onError(err) {
278 if (
279 err &&
280 err.name !== 'AbortError' &&
281 err.code !== 'ERR_STREAM_PREMATURE_CLOSE'
282 ) {
283 finishOnlyHandleError(err);
284 }
285 }
286 stream.on('error', onError);
287 if (isReadable(stream) && isLastStream) {
288 lastStreamCleanup.push(() => {

Callers 3

doSendFileFDFunction · 0.50
afterOpenFunction · 0.50
sendInspectorCommandFunction · 0.50

Calls 1

finishOnlyHandleErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…