Function
createStdinError
(
executable: string,
cmd: string,
args: string[],
cause: unknown,
)
Source from the content-addressed store, hash-verified
| 533 | } |
| 534 | |
| 535 | function 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 | |
| 549 | function createCommandCanceledError(executable: string, cmd: string, args: string[]): AppError { |
| 550 | return new AppError('COMMAND_FAILED', 'request canceled', { |
Tested by
no test coverage detected