Fix fmt.Errorf() formatting

This commit is contained in:
Jake Champlin 2017-01-13 18:19:35 -05:00
parent 8fdc6518c8
commit f38e72f5fb
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ func validateAggregatorMethod(v interface{}, k string) (ws []string, errors []er
}
if _, ok := validMethods[value]; !ok {
errors = append(errors, fmt.Errorf(
`%q contains an invalid method %q. Valid methods are either "average", "max", "min", or "sum"`))
`%q contains an invalid method %q. Valid methods are either "average", "max", "min", or "sum"`, k, value))
}
return
}