mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 14:52:36 +02:00
show output if upload fails
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user