MCPcopy
hub / github.com/di-sukharev/opencommit / onError

Function onError

out/cli.cjs:9689–9705  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

9687 }
9688 socket.on("timeout", onTimeout);
9689 function onError(err) {
9690 const listenerCount = socket.listeners("error").length;
9691 debug5(
9692 "%s(requests: %s, finished: %s) error: %s, listenerCount: %s",
9693 socket[SOCKET_NAME],
9694 socket[SOCKET_REQUEST_COUNT],
9695 socket[SOCKET_REQUEST_FINISHED_COUNT],
9696 err,
9697 listenerCount
9698 );
9699 agent.errorSocketCount++;
9700 if (listenerCount === 1) {
9701 debug5("%s emit uncaught error event", socket[SOCKET_NAME]);
9702 socket.removeListener("error", onError);
9703 socket.emit("error", err);
9704 }
9705 }
9706 socket.on("error", onError);
9707 function onRemove() {
9708 debug5(

Callers 4

onHttp2SessionErrorFunction · 0.85
onHttp2FrameErrorFunction · 0.85
onSocketErrorFunction · 0.85
connect3Function · 0.85

Calls 8

debug5Function · 0.85
errorRequestFunction · 0.85
rejectFunction · 0.85
removeListenerMethod · 0.80
emitMethod · 0.45
offMethod · 0.45
destroyMethod · 0.45
terminateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…