This commit is contained in:
Marc Tamsky 2025-03-29 20:36:30 +00:00 committed by GitHub
commit 4bb7316f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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 := ""

View file

@ -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)
}