0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-24 21:20:40 +00:00

refactor: better enhance error message

This commit is contained in:
Beatriz Vieira 2020-12-01 19:43:19 -03:00
parent b1dbfb71e9
commit 3b0ae34b56

View File

@ -62,7 +62,7 @@ func (p ValidateMessageProcessorImpl) Enhance(branch string, message string) (st
groups := r.FindStringSubmatch(branch) groups := r.FindStringSubmatch(branch)
if len(groups) != 4 { if len(groups) != 4 {
return "", fmt.Errorf("could not find issue id group with configured regex") return "", fmt.Errorf("could not find issue id using configured regex")
} }
footer := fmt.Sprintf("%s: %s", p.issueKeyName, groups[2]) footer := fmt.Sprintf("%s: %s", p.issueKeyName, groups[2])