mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
change error message on email update failure
This commit is contained in:
parent
c6de896bb5
commit
7a3fcf6d2c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue