Grafana-CLI: mention the plugins directory is not writable on failure

pull/11594/head
Matthew McGinn 7 years ago
parent 52bd51f2d0
commit ee623e2091
  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