MCPcopy Create free account
hub / github.com/agent-tower/core / constructor

Method constructor

packages/server/src/git/git-cli.ts:34–40  ·  view source on GitHub ↗
(branchName: string, reason?: string)

Source from the content-addressed store, hash-verified

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
40export class WorktreeNotFoundError extends GitError {
41 constructor(worktreePath: string) {
42 super(
43 `Worktree not found at '${worktreePath}'`,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected