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

Function onError

lib/_http_outgoing.js:901–913  ·  view source on GitHub ↗
(msg, err, callback)

Source from the content-addressed store, hash-verified

899};
900
901function onError(msg, err, callback) {
902 if (msg.destroyed) {
903 return;
904 }
905
906 const triggerAsyncId = msg.socket ? msg.socket[async_id_symbol] : undefined;
907 defaultTriggerAsyncIdScope(triggerAsyncId,
908 process.nextTick,
909 emitErrorNt,
910 msg,
911 err,
912 callback);
913}
914
915function emitErrorNt(msg, err, callback) {
916 callback(err);

Callers 2

write_Function · 0.70
_http_outgoing.jsFile · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…