v1.18.x
barisusakli 10 years ago
parent 9f74450196
commit 5009e80122

@ -486,7 +486,7 @@ accountsController.uploadPicture = function (req, res, next) {
} }
], function(err, image) { ], function(err, image) {
fs.unlink(userPhoto.path, function(err) { fs.unlink(userPhoto.path, function(err) {
winston.error('unabled to delete picture', err); winston.error('unable to delete picture', err);
}); });
if (err) { if (err) {
return next(err); return next(err);

Loading…
Cancel
Save