| 1 | import { HttpStatus } from '@nestjs/common'; |
| 2 | import { DomainError } |
| 3 | |
| 4 | export class GitCommandFailedError |
| 5 | status: number |
| 6 | |
| 7 | constructor( |
| 8 | readonly command: |
| 9 | readonly exitCode: |
| 10 | readonly stderr: |
| 11 | // Some commands report a failure on stdout, such as `merge-tree` listing the conflicted paths. |
| 12 | readonly stdout = |
| 13 | ) { |
| 14 | super(`git ${command |
| 15 | } |
| 16 | } |