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();
} else if (authz.status==='invalid') {
unlink();
challengesState = state.challenges.map(function (challenge) {
challengesState = (authz.challenges || []).map(function (challenge) {
var result = ' - ' + challenge.uri + ' [' + challenge.status + ']';
if (result.error) {
result += '\n ' + result.error.detail;
if (challenge.error) {
result += '\n ' + challenge.error.detail;
}
return result;
}).join('\n');