MCPcopy Create free account
hub / github.com/angular/dev-infra / onError

Function onError

github-actions/browserstack/set-browserstack-env.js:324–335  ·  view source on GitHub ↗
(cause)

Source from the content-addressed store, hash-verified

322 return cb(socket);
323 }
324 function onError(cause) {
325 connectReq.removeAllListeners();
326 debug2(
327 "tunneling socket could not be established, cause=%s\n",
328 cause.message,
329 cause.stack
330 );
331 var error = new Error("tunneling socket could not be established, cause=" + cause.message);
332 error.code = "ECONNRESET";
333 options.request.emit("error", error);
334 self.removeSocket(placeholder);
335 }
336 };
337 TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
338 var pos = this.sockets.indexOf(socket);

Callers 2

constructorMethod · 0.70
connectFunction · 0.70

Calls 3

offMethod · 0.45
destroyMethod · 0.45
terminateMethod · 0.45

Tested by

no test coverage detected