mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-10 02:10:38 +00:00
refactor: better enhance error message
This commit is contained in:
parent
b1dbfb71e9
commit
3b0ae34b56
@ -62,7 +62,7 @@ func (p ValidateMessageProcessorImpl) Enhance(branch string, message string) (st
|
||||
|
||||
groups := r.FindStringSubmatch(branch)
|
||||
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])
|
||||
|
Loading…
Reference in New Issue
Block a user