Skip to content

Commit

Permalink
Merge "[FAB-3425] Fix typo in error messages"
Browse files Browse the repository at this point in the history
  • Loading branch information
christo4ferris authored and Gerrit Code Review committed May 26, 2017
2 parents 8884306 + dfb555f commit 5f90dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/serverregister.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ func (h *registerHandler) registerUserID(req *api.RegistrationRequestNet, caname
maxEnrollments := h.server.caMap[caname].Config.Registry.MaxEnrollments

if (req.MaxEnrollments > maxEnrollments && maxEnrollments != 0) || (req.MaxEnrollments < 0) {
return "", fmt.Errorf("Invalid max enrollment value specified, value must be equal to or less then %d", maxEnrollments)
return "", fmt.Errorf("Invalid max enrollment value specified, value must be equal to or less than %d", maxEnrollments)
}

if req.MaxEnrollments == 0 && maxEnrollments != 0 {
return "", fmt.Errorf("Unlimited enrollments not allowed, value must be equal to or less then %d", maxEnrollments)
return "", fmt.Errorf("Unlimited enrollments not allowed, value must be equal to or less than %d", maxEnrollments)
}

insert := spi.UserInfo{
Expand Down

0 comments on commit 5f90dd2

Please sign in to comment.