show output if upload fails

v1.18.x
Barış Soner Uşaklı 8 years ago
parent e252c5195d
commit 052afb10f7

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

Loading…
Cancel
Save