From 25a30486029b745dadfe200e83c7067de05ee50e Mon Sep 17 00:00:00 2001 From: alessandroargentieri Date: Tue, 11 Apr 2023 15:54:10 +0200 Subject: [PATCH] added test for the error fix --- logger_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logger_test.go b/logger_test.go index 6d324ec..e2be34d 100644 --- a/logger_test.go +++ b/logger_test.go @@ -454,6 +454,7 @@ func TestAdaptMessage(t *testing.T) { struct{ test string }{"Hello test"}: "{Hello test}", "Hi message": "Hi message", `{"name": "John", "surname": "Doe"}`: `map[name:John surname:Doe]`, + fmt.Errorf("Nice error!"): "Nice error!", } var b bytes.Buffer