From 17ab5bffcb256024d8857a4b18bd689b561028e1 Mon Sep 17 00:00:00 2001 From: maura fortino Date: Tue, 14 Nov 2023 14:27:52 -0500 Subject: [PATCH] added err to one of the validator if statements --- primaryHandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primaryHandler.go b/primaryHandler.go index 8c33aac..249fecc 100644 --- a/primaryHandler.go +++ b/primaryHandler.go @@ -584,7 +584,7 @@ func ValidateWRP(logger *zap.Logger) func(http.Handler) http.Handler { http.StatusBadRequest, fmt.Sprintf("failed to validate WRP message: %s", err)) return - } else if errors.Is(err, wrp.ErrorInvalidDestination) || errors.Is(err, wrp.ErrorInvalidSource.Err) { + } else if errors.Is(err, wrp.ErrorInvalidDestination.Err) || errors.Is(err, wrp.ErrorInvalidSource.Err) { logger.Warn("WRP message validation failures found", zap.Error(err)) } }