Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jul 10, 2023
1 parent 8528e0e commit 9854e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/utils/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (gm *GitManager) CreateBranchAndCheckout(branchName string) error {
if gm.dryRun {
return nil
}
err = fmt.Errorf("git create and checkout failed with error: %s", err.Error())
err = fmt.Errorf("git create and checkout branch: %s, failed with error: %s", branchName, err.Error())
}
return err
}
Expand Down Expand Up @@ -276,7 +276,7 @@ func (gm *GitManager) CheckoutRemoteBranch(branchName string) error {
return err
}
if err = worktree.Checkout(checkoutConfig); err != nil {
return fmt.Errorf("checkout to remote branch failed with error: %s", err.Error())
return fmt.Errorf("checkout to remote branch: %s, failed with error: %s", branchName, err.Error())
}
return nil
}
Expand Down

0 comments on commit 9854e81

Please sign in to comment.