From a2d0cadcd4eea9eb1bd767611ae60bc3ed3f1f45 Mon Sep 17 00:00:00 2001 From: Will Krause Date: Fri, 10 Jun 2022 14:47:31 -0400 Subject: [PATCH] fix golangci-lint error --- plugins/parsers/json_v2/parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/parsers/json_v2/parser_test.go b/plugins/parsers/json_v2/parser_test.go index 3797465e..a5ca5777 100644 --- a/plugins/parsers/json_v2/parser_test.go +++ b/plugins/parsers/json_v2/parser_test.go @@ -107,7 +107,7 @@ func readMetricFile(path string) ([]cua.Metric, error) { // The timezone needs to be UTC to match the timestamp test results m.SetTime(m.Time().UTC()) if err != nil { - return nil, fmt.Errorf("unable to parse metric in %q failed: %v", line, err) + return nil, fmt.Errorf("unable to parse metric in %q failed: %w", line, err) } metrics = append(metrics, m) }