MCPcopy Create free account
hub / github.com/sindresorhus/execa / createNonCommandError

Function createNonCommandError

lib/pipe/throw.js:48–56  ·  view source on GitHub ↗
({error, fileDescriptors, sourceOptions, startTime})

Source from the content-addressed store, hash-verified

46
47// Specific error return value when passing invalid arguments to `subprocess.pipe()` or when using `unpipeSignal`
48export const createNonCommandError = ({error, fileDescriptors, sourceOptions, startTime}) => makeEarlyError({
49 error,
50 command: PIPE_COMMAND_MESSAGE,
51 escapedCommand: PIPE_COMMAND_MESSAGE,
52 fileDescriptors,
53 options: sourceOptions,
54 startTime,
55 isSync: false,
56});
57
58const PIPE_COMMAND_MESSAGE = 'source.pipe(destination)';

Callers 2

unpipeOnSignalAbortFunction · 0.90
handlePipeArgumentsErrorFunction · 0.85

Calls 1

makeEarlyErrorFunction · 0.90

Tested by

no test coverage detected