From 89b92b94ddc015302eb71851f7c1650a828c31bb Mon Sep 17 00:00:00 2001 From: David Bariod Date: Sun, 8 Nov 2020 07:19:28 +0100 Subject: [PATCH] one more linter error fixed --- json_formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_formatter.go b/json_formatter.go index ba7f237..afaf0fc 100644 --- a/json_formatter.go +++ b/json_formatter.go @@ -118,7 +118,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { encoder.SetIndent("", " ") } if err := encoder.Encode(data); err != nil { - return nil, fmt.Errorf("failed to marshal fields to JSON, %v", err) + return nil, fmt.Errorf("failed to marshal fields to JSON, %w", err) } return b.Bytes(), nil