Skip to content

Commit

Permalink
fix: return the raw error from Argument.Get
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ianroberts committed Oct 29, 2024
1 parent e2c51dc commit 36bcb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36bcb09

Please sign in to comment.