( abort: CommandAbort, executable: string, cmd: string, args: string[], exitCode: number, allowFailure: boolean | undefined, stdout: string, stderr: string, )
| 610 | // Failure (if any) for a spawned child's `close` event: canceled if we aborted, an exit error on |
| 611 | // a non-zero code unless allowed, otherwise null (the command resolves successfully). |
| 612 | function commandCloseFailure( |
| 613 | abort: CommandAbort, |
| 614 | executable: string, |
| 615 | cmd: string, |
| 616 | args: string[], |
| 617 | exitCode: number, |
| 618 | allowFailure: boolean | undefined, |
| 619 | stdout: string, |
| 620 | stderr: string, |
| 621 | ): AppError | null { |
| 622 | if (abort.didAbort) return createCommandCanceledError(executable, cmd, args); |
| 623 | if (exitCode !== 0 && !allowFailure) { |
| 624 | return createExitError(executable, cmd, args, exitCode, stdout, stderr); |
| 625 | } |
| 626 | return null; |
| 627 | } |
| 628 | |
| 629 | function normalizeOverridePath( |
| 630 | rawPath: string | undefined, |
no test coverage detected