Print body stringified
This commit is contained in:
parent
5afa0815ca
commit
5c10f861f0
@ -18,7 +18,7 @@ function AppStore(origin) {
|
||||
|
||||
function verifyResponse(res, errorMessage) {
|
||||
if (res.statusCode < 200 || res.statusCode > 299) {
|
||||
debug('Response error statusCode:%s error:%s body:%s', res.statusCode, res.error, res.body);
|
||||
debug('Response error statusCode:%s error:%s body:%j', res.statusCode, res.error, res.body);
|
||||
debug(errorMessage.red);
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ function Cloudron(box) {
|
||||
|
||||
function verifyResponse(res, errorMessage) {
|
||||
if (res.statusCode < 200 || res.statusCode > 399) {
|
||||
debug('Response error statusCode:%s error:%s body:%s', res.statusCode, res.error, res.body);
|
||||
debug('Response error statusCode:%s error:%s body:%j', res.statusCode, res.error, res.body);
|
||||
debug(errorMessage.red);
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user