summaryrefslogtreecommitdiffstats
path: root/api/command_invite_people.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-02-22 21:32:39 -0500
committerCorey Hulen <corey@hulen.com>2017-02-22 21:32:39 -0500
commit9f65284ba1c67c20de1ccd7a5af80aa64c3575f7 (patch)
tree2fec884914f72797e79af8bf376620f1add3ffdc /api/command_invite_people.go
parentad61a63ad227b9cef68946f6c679b6cd49a01a37 (diff)
downloadchat-9f65284ba1c67c20de1ccd7a5af80aa64c3575f7.tar.gz
chat-9f65284ba1c67c20de1ccd7a5af80aa64c3575f7.tar.bz2
chat-9f65284ba1c67c20de1ccd7a5af80aa64c3575f7.zip
Fix response for malformed command execute request (#5498)
Diffstat (limited to 'api/command_invite_people.go')
-rw-r--r--api/command_invite_people.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/command_invite_people.go b/api/command_invite_people.go
index ef2449ebc..b8f1827b0 100644
--- a/api/command_invite_people.go
+++ b/api/command_invite_people.go
@@ -6,6 +6,7 @@ package api
import (
"strings"
+ l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/app"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
@@ -55,7 +56,7 @@ func (me *InvitePeopleProvider) DoCommand(c *Context, args *model.CommandArgs, m
}
if err := app.InviteNewUsersToTeam(emailList, c.TeamId, c.Session.UserId, c.GetSiteURL()); err != nil {
- c.Err = err
+ l4g.Error(err.Error())
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: c.T("api.command.invite_people.fail")}
}