Merge pull request #11594 from xginn8/writable_plugins

Grafana-CLI: mention the plugins directory is not writable on failure
This commit is contained in:
Carl Bergquist 2018-04-16 09:27:19 +02:00 committed by GitHub
commit a140296633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}