Merge pull request #4 from martinheidegger/detailed-error-message

Fixed the error message
This commit is contained in:
AJ ONeal 2016-02-15 16:14:31 -07:00
commit 4c2e638aed
1 changed files with 3 additions and 3 deletions

View File

@ -235,10 +235,10 @@ module.exports.create = function (deps) {
nextDomain(); nextDomain();
} else if (authz.status==='invalid') { } else if (authz.status==='invalid') {
unlink(); unlink();
challengesState = state.challenges.map(function (challenge) { challengesState = (authz.challenges || []).map(function (challenge) {
var result = ' - ' + challenge.uri + ' [' + challenge.status + ']'; var result = ' - ' + challenge.uri + ' [' + challenge.status + ']';
if (result.error) { if (challenge.error) {
result += '\n ' + result.error.detail; result += '\n ' + challenge.error.detail;
} }
return result; return result;
}).join('\n'); }).join('\n');