Added missing logic to handle undefined le.challenge.get exceptions

This commit is contained in:
richard.thake 2016-08-23 22:28:44 +01:00
parent 2451fafa25
commit 1c95d7b4ff
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,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 (4 !== le.challenge.get.length || le.challenge.get === undefined) {
throw new Error("le.challenge.get receives the wrong number of arguments."
+ " You must define getChallenge as function (opts, domain, key, cb) { }");
}