concatenate non-parseable response body to e.stack
This commit is contained in:
parent
764096a0b2
commit
526e19b23e
|
@ -30,6 +30,8 @@ module.exports.create = function (deps) {
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
err.raw = data;
|
||||||
|
err.stack += '\n' + data;
|
||||||
cb(e);
|
cb(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue