show error message when there are no results

This commit is contained in:
AJ ONeal 2016-01-01 14:15:24 -08:00
parent 224d57ba71
commit 61a8e19789
1 changed files with 8 additions and 0 deletions

View File

@ -115,6 +115,14 @@ cli.main(function(_, options) {
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) {
handlers.closeServers();
}