errMissingACLs return an error with the missing ACLs
(missing []string)
| 29 | |
| 30 | // errMissingACLs return an error with the missing ACLs |
| 31 | func errMissingACLs(missing []string) error { |
| 32 | err := fmt.Sprintf("Missing API key ACL(s): %s\n", strings.Join(missing, ", ")) |
| 33 | err += "Edit your profile or use the `--api-key` flag to provide an API key with the missing ACLs.\n" |
| 34 | err += "See https://www.algolia.com/doc/guides/security/api-keys/#rights-and-restrictions for more information" |
| 35 | |
| 36 | return errors.New(err) |
| 37 | } |
| 38 | |
| 39 | // errAdminAPIKeyRequired is returned when the command requires an admin API Key |
| 40 | var errAdminAPIKeyRequired = errors.New( |