always show not ok error

This commit is contained in:
AJ ONeal 2016-02-16 10:08:12 -07:00
parent 44fb789543
commit 764096a0b2
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ module.exports.create = function (deps) {
err.type = body.type err.type = body.type
err.description = body; err.description = body;
err.detail = body.detail; err.detail = body.detail;
console.error("TODO: modules which depend on this module should expose this error properly but since some of them don't, I expose it here directly:");
console.error(err.stack);
console.error(body);
throw err; throw err;
} }