From 5c10f861f010b04626da139c1018925d13214c9a Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 16 Jun 2015 16:43:33 +0200 Subject: [PATCH] Print body stringified --- appstore.js | 2 +- cloudron.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appstore.js b/appstore.js index 27dc2ab..e8e1854 100644 --- a/appstore.js +++ b/appstore.js @@ -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); } diff --git a/cloudron.js b/cloudron.js index 470f10a..c57bc9d 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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); }