Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Nov 27, 2024
1 parent 0d97305 commit 3ca706f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export default class LinkIndex extends Command {
try {
currentBranch = execSync("git symbolic-ref --short HEAD", { encoding: "utf-8" }).trim();
} catch (error) {
throw new Error(chalk.red("Unable to determine the current branch. Are you inside a Git repository?"));
this.log(chalk.red("Unable to determine the current branch. Are you inside a Git repository?"));
throw error;
}

if (currentBranch !== "main") {
Expand Down

0 comments on commit 3ca706f

Please sign in to comment.