( executable: string, cmd: string, args: string[], exitCode: number, stdout: string, stderr: string, )
| 575 | } |
| 576 | |
| 577 | function 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 | |
| 595 | type CommandAbort = { readonly didAbort: boolean }; |
| 596 |
no outgoing calls
no test coverage detected