From 1d7e0dc70128c825e388aa331b6f08e58a85bd3c Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Fri, 24 Feb 2023 09:21:52 +0000 Subject: [PATCH] style: happy linting --- logginghandler_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logginghandler_test.go b/logginghandler_test.go index acdd301..335a007 100644 --- a/logginghandler_test.go +++ b/logginghandler_test.go @@ -4,6 +4,7 @@ import ( "bytes" "context" "encoding/json" + "fmt" "net/http" "net/http/httptest" "strings" @@ -135,7 +136,7 @@ func TestRequestIDHandler(t *testing.T) { err := json.Unmarshal([]byte(l), &out) if err != nil { - return "", err + return "", fmt.Errorf("failed to unmarshal log: %w", err) } return out.UUID, nil