show output if upload fails

This commit is contained in:
Barış Soner Uşaklı
2017-05-10 22:05:23 -04:00
parent e252c5195d
commit 052afb10f7

View File

@@ -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);
});
};