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

Function onwriteError

lib/internal/streams/writable.js:602–613  ·  view source on GitHub ↗
(stream, state, er, cb)

Source from the content-addressed store, hash-verified

600}
601
602function onwriteError(stream, state, er, cb) {
603 --state.pendingcb;
604
605 cb(er);
606 // Ensure callbacks are invoked even when autoDestroy is
607 // not enabled. Passing `er` here doesn't make sense since
608 // it's related to one specific write, not to the buffered
609 // writes.
610 errorBuffer(state);
611 // This can emit error, but error must always follow cb.
612 errorOrDestroy(stream, er);
613}
614
615function onwrite(stream, er) {
616 const state = stream._writableState;

Callers 1

onwriteFunction · 0.85

Calls 3

errorBufferFunction · 0.85
errorOrDestroyFunction · 0.85
cbFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…