updated some help text

This commit is contained in:
Julian Lam
2016-04-07 17:47:17 -04:00
parent c88ed66312
commit 0449e014f6
2 changed files with 12 additions and 1 deletions

View File

@@ -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);