diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-01-08 19:13:24 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-01-08 13:13:24 -0500 |
commit | dd9ad10d705fdbd7fbfa7323e6560b69021a2950 (patch) | |
tree | 4064e05fa746abae33fc7c6939fcdef2be7317d2 /app/plugin | |
parent | 591ef9f352efd98a85e6d04c0c9072c4c2987527 (diff) | |
download | chat-dd9ad10d705fdbd7fbfa7323e6560b69021a2950.tar.gz chat-dd9ad10d705fdbd7fbfa7323e6560b69021a2950.tar.bz2 chat-dd9ad10d705fdbd7fbfa7323e6560b69021a2950.zip |
[PLT-6936] Translate AppError.Message automatically by default (#8063)
Diffstat (limited to 'app/plugin')
-rw-r--r-- | app/plugin/ldapextras/plugin.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/plugin/ldapextras/plugin.go b/app/plugin/ldapextras/plugin.go index 473ec6393..3af55c2ac 100644 --- a/app/plugin/ldapextras/plugin.go +++ b/app/plugin/ldapextras/plugin.go @@ -13,7 +13,6 @@ import ( "github.com/mattermost/mattermost-server/app/plugin" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" ) type Plugin struct { @@ -65,7 +64,6 @@ func (p *Plugin) handleGetAttributes(w http.ResponseWriter, r *http.Request) { attributes, err := p.api.GetLdapUserAttributes(id, config.Attributes) if err != nil { - err.Translate(utils.T) http.Error(w, fmt.Sprintf("Errored getting attributes: %v", err.Error()), http.StatusInternalServerError) } |