mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #3458
This commit is contained in:
@@ -493,7 +493,7 @@ accountsController.uploadPicture = function (req, res, next) {
|
||||
}
|
||||
], function(err, image) {
|
||||
fs.unlink(userPhoto.path, function(err) {
|
||||
winston.error('unable to delete picture', err);
|
||||
winston.error('unable to delete picture ' + userPhoto.path, err);
|
||||
});
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user