espelhamento de
https://github.com/therootcompany/greenlock.js.git
sincronizado 2024-11-16 17:29:00 +00:00
Merge pull request #49 from amelja/master
Added missing logic to handle undefined le.challenge.get exceptions
Esse commit está contido em:
commit
09c5ae310f
2
index.js
2
index.js
@ -256,7 +256,7 @@ LE.create = function (le) {
|
|||||||
throw new Error("le.challenge.set receives the wrong number of arguments."
|
throw new Error("le.challenge.set receives the wrong number of arguments."
|
||||||
+ " You must define setChallenge as function (opts, domain, key, val, cb) { }");
|
+ " 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."
|
throw new Error("le.challenge.get receives the wrong number of arguments."
|
||||||
+ " You must define getChallenge as function (opts, domain, key, cb) { }");
|
+ " You must define getChallenge as function (opts, domain, key, cb) { }");
|
||||||
}
|
}
|
||||||
|
Carregando…
x
Referência em uma nova issue
Block a user