From 2595b9df36ff0444bee27c5fcda02de8026802ee Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Mar 2017 14:49:36 +0900 Subject: [PATCH] [API] Better error message --- src/api/endpoints/messaging/messages/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/endpoints/messaging/messages/create.js b/src/api/endpoints/messaging/messages/create.js index 2d52bf263e..69f9811b89 100644 --- a/src/api/endpoints/messaging/messages/create.js +++ b/src/api/endpoints/messaging/messages/create.js @@ -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({