Merge pull request #1206 from AkihiroSuda/improve-btrfs-error

btrfs: improve an error string
This commit is contained in:
Phil Estes 2017-07-19 09:56:58 -04:00 committed by GitHub
commit 834cafc2d6

View File

@ -54,7 +54,7 @@ func NewSnapshotter(root string) (snapshot.Snapshotter, error) {
return nil, err return nil, err
} }
if mnt.FSType != "btrfs" { if mnt.FSType != "btrfs" {
return nil, fmt.Errorf("expected btrfs, got %s", mnt.FSType) return nil, fmt.Errorf("path %s must be a btrfs filesystem to be used with the btrfs snapshotter", root)
} }
var ( var (
active = filepath.Join(root, "active") active = filepath.Join(root, "active")