Fix fmt.Errorf() formatting
This commit is contained in:
parent
8fdc6518c8
commit
f38e72f5fb
|
@ -720,7 +720,7 @@ func validateAggregatorMethod(v interface{}, k string) (ws []string, errors []er
|
||||||
}
|
}
|
||||||
if _, ok := validMethods[value]; !ok {
|
if _, ok := validMethods[value]; !ok {
|
||||||
errors = append(errors, fmt.Errorf(
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue