From f38e72f5fbc49c957860075c4da6b16c8082d22d Mon Sep 17 00:00:00 2001 From: Jake Champlin Date: Fri, 13 Jan 2017 18:19:35 -0500 Subject: [PATCH] Fix fmt.Errorf() formatting --- builtin/providers/datadog/resource_datadog_timeboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/datadog/resource_datadog_timeboard.go b/builtin/providers/datadog/resource_datadog_timeboard.go index 26942f637..8097d067e 100644 --- a/builtin/providers/datadog/resource_datadog_timeboard.go +++ b/builtin/providers/datadog/resource_datadog_timeboard.go @@ -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 }