From 36bcb09cf7eff781e12e35e5d86085bf8186e37b Mon Sep 17 00:00:00 2001 From: Ian Roberts Date: Tue, 29 Oct 2024 21:05:43 +0000 Subject: [PATCH] fix: return the raw error from Argument.Get There are other places in the logic that depend on errors extracting Argument values being of type ParameterNodeError specifically, so we shouldn't wrap these errors further. --- internal/hook/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hook/hook.go b/internal/hook/hook.go index 52ded35..a4db1de 100644 --- a/internal/hook/hook.go +++ b/internal/hook/hook.go @@ -1092,7 +1092,7 @@ func (r SignatureRule) Evaluate(req *Request) (bool, error) { // find the signature sig, err := r.Signature.Get(req) if err != nil { - return false, fmt.Errorf("could not extract signature string: %w", err) + return false, err } // determine the payload that is signed