(branchName: string, reason?: string)
| 32 | const msg = reason |
| 33 | ? `Invalid branch name '${branchName}': ${reason}` |
| 34 | : `Invalid branch name '${branchName}'`; |
| 35 | super(msg, 'INVALID_BRANCH_NAME'); |
| 36 | this.name = 'InvalidBranchNameError'; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | export class WorktreeNotFoundError extends GitError { |
| 41 | constructor(worktreePath: string) { |
| 42 | super( |
| 43 | `Worktree not found at '${worktreePath}'`, |
nothing calls this directly
no outgoing calls
no test coverage detected