mirror of
				https://github.com/adnanh/webhook.git
				synced 2025-10-25 02:30:58 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									e2c51dc1dd
								
							
						
					
					
						commit
						36bcb09cf7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue