Use a better format in error output

This commit is contained in:
Jake Champlin 2017-01-13 15:43:47 -05:00
parent 8ac7f53c33
commit 6a31ed5ee8
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ func validateRecordType(v interface{}, k string) (ws []string, errors []error) {
if _, ok := validTypes[value]; !ok {
errors = append(errors, fmt.Errorf(
"%q contains an invalid type %q. Valid types are: %q, %q, %q, %q, %q, %q, %q, %q, or %q",
k, value, "A", "AAAA", "CNAME", "TXT", "SRV", "LOC", "MX", "NS", "SPF"))
`%q contains an invalid type %q. Valid types are "A", "AAAA", "CNAME", "TXT", "SRV", "LOC", "MX", "NS" or "SPF"`, k, value))
}
return
}