mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Cleans error on email address or name. We need to go through all the errors and manage them better with translations.
This commit is contained in:
+1
-1
@@ -356,7 +356,7 @@ UserService.createLocalUser = (email, password, displayName) => {
|
||||
user.save((err) => {
|
||||
if (err) {
|
||||
if (err.code === 11000) {
|
||||
return reject('Email address already in use');
|
||||
return reject(new Error('Email address or Name already in use'));
|
||||
}
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user