show error message when there are no results

Este commit está contenido en:
AJ ONeal 2016-01-01 14:15:24 -08:00
padre 224d57ba71
commit 61a8e19789
Se han modificado 1 ficheros con 8 adiciones y 0 borrados

Ver fichero

@ -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();
}