[client] Fix error count formatting (#2641)

This commit is contained in:
Viktor Liu 2024-09-24 20:57:56 +02:00 committed by GitHub
parent ab82302c95
commit e7d52c8c95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,8 +8,8 @@ import (
)
func formatError(es []error) string {
if len(es) == 0 {
return fmt.Sprintf("0 error occurred:\n\t* %s", es[0])
if len(es) == 1 {
return fmt.Sprintf("1 error occurred:\n\t* %s", es[0])
}
points := make([]string, len(es))