MCPcopy Index your code
hub / github.com/callstack/agent-device / createStdinError

Function createStdinError

src/utils/exec.ts:535–547  ·  view source on GitHub ↗
(
  executable: string,
  cmd: string,
  args: string[],
  cause: unknown,
)

Source from the content-addressed store, hash-verified

533}
534
535function createStdinError(
536 executable: string,
537 cmd: string,
538 args: string[],
539 cause: unknown,
540): AppError {
541 return new AppError(
542 'COMMAND_FAILED',
543 `Failed to write stdin for ${executable}`,
544 { cmd, args },
545 cause instanceof Error ? cause : undefined,
546 );
547}
548
549function createCommandCanceledError(executable: string, cmd: string, args: string[]): AppError {
550 return new AppError('COMMAND_FAILED', 'request canceled', {

Callers 1

runSpawnedCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected