From 052afb10f7be5c4b80d63a6f430e361c16de74f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 10 May 2017 22:05:23 -0400 Subject: [PATCH] show output if upload fails --- test/helpers/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/helpers/index.js b/test/helpers/index.js index 2c37f85500..2b999246f7 100644 --- a/test/helpers/index.js +++ b/test/helpers/index.js @@ -104,7 +104,10 @@ helpers.uploadFile = function (uploadEndPoint, filePath, body, jar, csrf_token, if (err) { return callback(err); } - callback(err, res, body); + if (res.statusCode !== 200) { + console.log(body); + } + callback(null, res, body); }); };