mirror of
				https://git.coolaj86.com/coolaj86/greenlock-cli.js
				synced 2025-11-04 11:02:47 +00:00 
			
		
		
		
	show error message when there are no results
This commit is contained in:
		
							parent
							
								
									224d57ba71
								
							
						
					
					
						commit
						61a8e19789
					
				@ -115,6 +115,14 @@ cli.main(function(_, options) {
 | 
				
			|||||||
        return;
 | 
					        return;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      if (!results || ('object' !== typeof results)) {
 | 
				
			||||||
 | 
					        console.error("Error: An unknown error occurred. My best guess is that we got an error that we're not used to from the ACME server and accidentally interpretted it as a success... or forgot to expose the error.");
 | 
				
			||||||
 | 
					        console.error(results);
 | 
				
			||||||
 | 
					        err = new Error("Here's a stack trace, in case it helps:");
 | 
				
			||||||
 | 
					        console.error(err.stack);
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (handlers.closeServers) {
 | 
					      if (handlers.closeServers) {
 | 
				
			||||||
        handlers.closeServers();
 | 
					        handlers.closeServers();
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user