Merge pull request #11594 from xginn8/writable_plugins

Grafana-CLI: mention the plugins directory is not writable on failure
pull/11599/head
Carl Bergquist 7 years ago committed by GitHub
commit a140296633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/cmd/grafana-cli/commands/install_command.go

@ -33,7 +33,7 @@ func validateInput(c CommandLine, pluginFolder string) error {
fileInfo, err := os.Stat(pluginsDir)
if 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
}

Loading…
Cancel
Save