mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 10:25:24 +00:00
Merge 8e3af1ec9c into 83fc0386ad
This commit is contained in:
commit
4bb7316f6b
2 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ func (gen *Generator) getTags(query string) ([]*Tag, string, error) {
|
|||
}
|
||||
|
||||
if len(tags) == 0 {
|
||||
return nil, "", errors.New("git-tag does not exist")
|
||||
return nil, "", errors.New("zero git-tags were found")
|
||||
}
|
||||
|
||||
first := ""
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ func TestGeneratorNotFoundTags(t *testing.T) {
|
|||
expected := strings.TrimSpace(buf.String())
|
||||
|
||||
assert.Error(err)
|
||||
assert.Contains(err.Error(), "git-tag does not exist")
|
||||
assert.Contains(err.Error(), "zero git-tags were found")
|
||||
assert.Equal("", expected)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue