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

Function createExitError

src/utils/exec.ts:577–593  ·  view source on GitHub ↗
(
  executable: string,
  cmd: string,
  args: string[],
  exitCode: number,
  stdout: string,
  stderr: string,
)

Source from the content-addressed store, hash-verified

575}
576
577function createExitError(
578 executable: string,
579 cmd: string,
580 args: string[],
581 exitCode: number,
582 stdout: string,
583 stderr: string,
584): AppError {
585 return new AppError('COMMAND_FAILED', `${executable} exited with code ${exitCode}`, {
586 cmd,
587 args,
588 stdout,
589 stderr,
590 exitCode,
591 processExitError: true,
592 });
593}
594
595type CommandAbort = { readonly didAbort: boolean };
596

Callers 2

runCmdSyncFunction · 0.85
commandCloseFailureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected