Skip to content

Commit

Permalink
fix: show message to run gommitizen in the root path of git
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotejon committed Jan 9, 2024
1 parent a4d158e commit ea59831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ func (git *Git) ConfirmChanges(files []string, commitMessage string, tagMessage
for _, file := range files {
err = git.Add(file)
if err != nil {
return fmt.Errorf("error: the file %s could not be added: %v", file, err)
errMessage := "error: the file %s could not be added: %v\n\n" +
"\t** gommitizen must be run in the root path of the git repository\n"
return fmt.Errorf(errMessage, file, err)
}
}

Expand Down

0 comments on commit ea59831

Please sign in to comment.