Skip to content

Commit 2969fba

Browse files
committed
Improve validateAddContacts error message
1 parent 912341e commit 2969fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

group/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func validateAddContacts(contactIDs []string) error {
168168

169169
// len(nil) == 0: https://golang.org/ref/spec#Length_and_capacity
170170
if count == 0 {
171-
return fmt.Errorf("contactIDs is required")
171+
return fmt.Errorf("at least one contactID is required")
172172
}
173173

174174
if count > 50 {

0 commit comments

Comments
 (0)