change error message on email update failure

This commit is contained in:
Tim Alby 2018-06-25 13:46:46 +02:00
parent c6de896bb5
commit 7a3fcf6d2c

View file

@ -81,7 +81,7 @@ module.exports = UserUpdater =
logger.err error:error, 'problem removing users email' logger.err error:error, 'problem removing users email'
return callback(error) return callback(error)
if res.n == 0 if res.n == 0
return callback(new Error('Cannot remove default email')) return callback(new Error('Cannot remove email'))
callback() callback()