From dd9ad10d705fdbd7fbfa7323e6560b69021a2950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 8 Jan 2018 19:13:24 +0100 Subject: [PLT-6936] Translate AppError.Message automatically by default (#8063) --- app/plugin/ldapextras/plugin.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/plugin/ldapextras') 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) } -- cgit v1.2.3-1-g7c22