Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 3ca706f

Browse files
committed
fix lint
1 parent 0d97305 commit 3ca706f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/link/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ export default class LinkIndex extends Command {
116116
try {
117117
currentBranch = execSync("git symbolic-ref --short HEAD", { encoding: "utf-8" }).trim();
118118
} catch (error) {
119-
throw new Error(chalk.red("Unable to determine the current branch. Are you inside a Git repository?"));
119+
this.log(chalk.red("Unable to determine the current branch. Are you inside a Git repository?"));
120+
throw error;
120121
}
121122

122123
if (currentBranch !== "main") {

0 commit comments

Comments
 (0)