summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/plugin.go3
-rw-r--r--i18n/en.json4
2 files changed, 7 insertions, 0 deletions
diff --git a/app/plugin.go b/app/plugin.go
index 22d333679..6702e9227 100644
--- a/app/plugin.go
+++ b/app/plugin.go
@@ -318,6 +318,9 @@ func (a *App) EnablePlugin(id string) *model.AppError {
})
if err := a.SaveConfig(a.Config(), true); err != nil {
+ if err.Id == "ent.cluster.save_config.error" {
+ return model.NewAppError("EnablePlugin", "app.plugin.cluster.save_config.app_error", nil, "", http.StatusInternalServerError)
+ }
return model.NewAppError("EnablePlugin", "app.plugin.config.app_error", nil, err.Error(), http.StatusInternalServerError)
}
diff --git a/i18n/en.json b/i18n/en.json
index ed4d9dcf6..900b55170 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -3707,6 +3707,10 @@
"translation": "Error saving plugin state in config"
},
{
+ "id": "app.plugin.cluster.save_config.app_error",
+ "translation": "The plugin configuration in your config.json file must be updated manually when using ReadOnlyConfig with clustering enabled."
+ },
+ {
"id": "app.plugin.deactivate.app_error",
"translation": "Unable to deactivate plugin"
},