Commit a1402966 by Carl Bergquist Committed by GitHub

Merge pull request #11594 from xginn8/writable_plugins

Grafana-CLI: mention the plugins directory is not writable on failure
parents 67daa9b0 ee623e20
...@@ -33,7 +33,7 @@ func validateInput(c CommandLine, pluginFolder string) error { ...@@ -33,7 +33,7 @@ func validateInput(c CommandLine, pluginFolder string) error {
fileInfo, err := os.Stat(pluginsDir) fileInfo, err := os.Stat(pluginsDir)
if err != nil { if err != nil {
if err = os.MkdirAll(pluginsDir, os.ModePerm); err != nil { if err = os.MkdirAll(pluginsDir, os.ModePerm); err != nil {
return errors.New(fmt.Sprintf("pluginsDir (%s) is not a directory", pluginsDir)) return errors.New(fmt.Sprintf("pluginsDir (%s) is not a writable directory", pluginsDir))
} }
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment