mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
updated some help text
This commit is contained in:
@@ -126,7 +126,9 @@ editController.uploadPicture = function (req, res, next) {
|
||||
}
|
||||
], function(err, image) {
|
||||
fs.unlink(userPhoto.path, function(err) {
|
||||
winston.error('unable to delete picture ' + userPhoto.path, err);
|
||||
if (err) {
|
||||
winston.warn('[user/picture] Unable to delete picture ' + userPhoto.path, err);
|
||||
}
|
||||
});
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user