mirror of
				https://github.com/therootcompany/paypal-checkout.js.git
				synced 2025-10-31 13:12:52 +00:00 
			
		
		
		
	feature: more descriptive error message
This commit is contained in:
		
							parent
							
								
									38361ffe1e
								
							
						
					
					
						commit
						1c941cb104
					
				| @ -46,7 +46,7 @@ function sanitize(resp) { | |||||||
| 
 | 
 | ||||||
| function must201or200(resp) { | function must201or200(resp) { | ||||||
|   if (![200, 201].includes(resp.statusCode)) { |   if (![200, 201].includes(resp.statusCode)) { | ||||||
|     let err = new Error("bad response"); |     let err = new Error("[@root/paypal-checkout] bad response"); | ||||||
|     err.response = resp; |     err.response = resp; | ||||||
|     throw err; |     throw err; | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user