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

This commit is contained in:
Matthew McGinn
2018-04-15 13:44:17 -04:00
parent 52bd51f2d0
commit ee623e2091

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
}