MCPcopy
hub / github.com/sindresorhus/execa / throwOnEarlyDisconnect

Function throwOnEarlyDisconnect

lib/ipc/validation.js:24–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23// When `getOneMessage()` could not complete due to an early disconnection
24export const throwOnEarlyDisconnect = isSubprocess => {
25 throw new Error(`${getMethodName('getOneMessage', isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
26};
27
28// When both processes use `sendMessage()` with `strict` at the same time
29export const throwOnStrictDeadlockError = isSubprocess => {

Callers 1

throwOnDisconnectFunction · 0.90

Calls 2

getMethodNameFunction · 0.85
getOtherProcessNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…