Commit 4ee0a740 authored by zhangxiaoyu-zidif's avatar zhangxiaoyu-zidif

fix comment of isDir

parent 1fd6e97a
......@@ -218,7 +218,7 @@ func handleConfigMapFromEnvFileSource(configMap *api.ConfigMap, envFileSource st
}
}
if info.IsDir() {
return fmt.Errorf("must be a file")
return fmt.Errorf("env config file cannot be a directory")
}
return addFromEnvFile(envFileSource, func(key, value string) error {
......
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