Merge pull request #4 from martinheidegger/detailed-error-message
Fixed the error message
This commit is contained in:
commit
4c2e638aed
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue