summaryrefslogtreecommitdiffstats
path: root/app/plugin.go
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-01-08 19:13:24 +0100
committerJoram Wilander <jwawilander@gmail.com>2018-01-08 13:13:24 -0500
commitdd9ad10d705fdbd7fbfa7323e6560b69021a2950 (patch)
tree4064e05fa746abae33fc7c6939fcdef2be7317d2 /app/plugin.go
parent591ef9f352efd98a85e6d04c0c9072c4c2987527 (diff)
downloadchat-dd9ad10d705fdbd7fbfa7323e6560b69021a2950.tar.gz
chat-dd9ad10d705fdbd7fbfa7323e6560b69021a2950.tar.bz2
chat-dd9ad10d705fdbd7fbfa7323e6560b69021a2950.zip
[PLT-6936] Translate AppError.Message automatically by default (#8063)
Diffstat (limited to 'app/plugin.go')
-rw-r--r--app/plugin.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/plugin.go b/app/plugin.go
index 9083f4785..189ca9b09 100644
--- a/app/plugin.go
+++ b/app/plugin.go
@@ -428,7 +428,6 @@ func (a *App) InitPlugins(pluginPath, webappPath string, supervisorOverride plug
func (a *App) ServePluginRequest(w http.ResponseWriter, r *http.Request) {
if a.PluginEnv == nil || !*a.Config().PluginSettings.Enable {
err := model.NewAppError("ServePluginRequest", "app.plugin.disabled.app_error", nil, "Enable plugins to serve plugin requests", http.StatusNotImplemented)
- err.Translate(utils.T)
l4g.Error(err.Error())
w.WriteHeader(err.StatusCode)
w.Header().Set("Content-Type", "application/json")