Node.js based forum software built for the modern web
show output if upload fails
Barış Soner Uşaklı052afb10f7be
diff --git a/test/helpers/index.js b/test/helpers/index.jsindex 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);});};