Update to etcd v3.5.0 client

This commit is contained in:
Jordan Liggitt
2021-06-15 19:01:32 -04:00
parent 3a47ddccdf
commit 6448181d95
128 changed files with 2447 additions and 995 deletions

View File

@@ -39,10 +39,10 @@ type FS string
func NewFS(mountPoint string) (FS, error) {
info, err := os.Stat(mountPoint)
if err != nil {
return "", fmt.Errorf("could not read %s: %s", mountPoint, err)
return "", fmt.Errorf("could not read %q: %w", mountPoint, err)
}
if !info.IsDir() {
return "", fmt.Errorf("mount point %s is not a directory", mountPoint)
return "", fmt.Errorf("mount point %q is not a directory", mountPoint)
}
return FS(mountPoint), nil