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

Function onError

lib/internal/streams/iter/transform.js:389–397  ·  view source on GitHub ↗
(message, errno, code)

Source from the content-addressed store, hash-verified

387 // onError: called by C++ when the engine encounters an error.
388 // Fires instead of onWriteComplete - reject the promise.
389 function onError(message, errno, code) {
390 const error = genericNodeError(message, { __proto__: null, errno, code });
391 error.errno = errno;
392 error.code = code;
393 const reject = rejectWrite;
394 resolveWrite = undefined;
395 rejectWrite = undefined;
396 if (reject) reject(error);
397 }
398
399 // ---- Create the handle with our callbacks ----
400 const result = createHandleFn(onWriteComplete, onError);

Callers

nothing calls this directly

Calls 1

rejectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…