mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-24 17:13:30 +01:00
[client] Fix error count formatting (#2641)
This commit is contained in:
parent
ab82302c95
commit
e7d52c8c95
@ -8,8 +8,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func formatError(es []error) string {
|
func formatError(es []error) string {
|
||||||
if len(es) == 0 {
|
if len(es) == 1 {
|
||||||
return fmt.Sprintf("0 error occurred:\n\t* %s", es[0])
|
return fmt.Sprintf("1 error occurred:\n\t* %s", es[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
points := make([]string, len(es))
|
points := make([]string, len(es))
|
||||||
|
Loading…
Reference in New Issue
Block a user