mirror of
				https://github.com/therootcompany/acme.js.git
				synced 2024-11-16 17:29:00 +00:00 
			
		
		
		
	better error handling
This commit is contained in:
		
							parent
							
								
									bfc50ac9d2
								
							
						
					
					
						commit
						3e23ea5f8d
					
				
							
								
								
									
										2
									
								
								node.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								node.js
									
									
									
									
									
								
							| @ -452,6 +452,8 @@ ACME._finalizeOrder = function (me, options, validatedDomains) { | |||||||
|         return ACME._wait().then(pollCert); |         return ACME._wait().then(pollCert); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|  |       if (me.debug) console.debug("Error: bad status:\n" + JSON.stringify(resp.body, null, 2)); | ||||||
|  | 
 | ||||||
|       if ('pending' === resp.body.status) { |       if ('pending' === resp.body.status) { | ||||||
|         return Promise.reject(new Error( |         return Promise.reject(new Error( | ||||||
|           "Did not finalize order: status 'pending'." |           "Did not finalize order: status 'pending'." | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user