[API] Better error message

This commit is contained in:
syuilo 2017-03-01 14:49:36 +09:00
parent 8097083ed6
commit 24691383d6

View file

@ -42,7 +42,7 @@ module.exports = (params, user) =>
// Myself
if (new mongo.ObjectID(recipient).equals(user._id)) {
return rej('-need-translate-');
return rej('cannot send message to myself');
}
recipient = await User.findOne({