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

Function createTimeoutError

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

Source from the content-addressed store, hash-verified

556}
557
558function createTimeoutError(
559 executable: string,
560 cmd: string,
561 args: string[],
562 timeoutMs: number,
563 exitCode: number,
564 stdout: string,
565 stderr: string,
566): AppError {
567 return new AppError('COMMAND_FAILED', `${executable} timed out after ${timeoutMs}ms`, {
568 cmd,
569 args,
570 stdout,
571 stderr,
572 exitCode,
573 timeoutMs,
574 });
575}
576
577function createExitError(
578 executable: string,

Callers 1

runSpawnedCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected