Fix a `go vet` issue re: missing arg to `fmt.Sprintf`.

This commit is contained in:
Sean Chittenden 2017-02-16 14:08:15 -08:00
parent 6df42d4348
commit dfb86a8983
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ func validateDurationMinFactory(name, minDuration string) func(v interface{}, ke
return func(v interface{}, key string) (warnings []string, errors []error) {
d, err := time.ParseDuration(v.(string))
if err != nil {
errors = append(errors, errwrap.Wrapf(fmt.Sprintf("Invalid %s specified (%q): {{err}}", name), err))
errors = append(errors, errwrap.Wrapf(fmt.Sprintf("Invalid %s specified (%q): {{err}}", name, v.(string)), err))
}
if d < dMin {