Merge pull request #49 from amelja/master

Added missing logic to handle undefined le.challenge.get exceptions
This commit is contained in:
AJ ONeal 2016-08-30 15:56:57 -06:00 gecommit door GitHub
bovenliggende e93292c2ef bef3b8162c
commit 09c5ae310f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen

Bestand weergeven

@ -256,7 +256,7 @@ LE.create = function (le) {
throw new Error("le.challenge.set receives the wrong number of arguments."
+ " You must define setChallenge as function (opts, domain, key, val, cb) { }");
}
if (4 !== le.challenge.get.length) {
if (le.challenge.get && 4 !== le.challenge.get.length) {
throw new Error("le.challenge.get receives the wrong number of arguments."
+ " You must define getChallenge as function (opts, domain, key, cb) { }");
}