From 8934d7cb64eda930d510a361f5dad014ae545bb6 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sat, 30 Sep 2017 16:39:15 +0200 Subject: [PATCH] zfs: was not returning error on invalid dataset path --- zfs/diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zfs/diff.go b/zfs/diff.go index 2421f64..12f9174 100644 --- a/zfs/diff.go +++ b/zfs/diff.go @@ -205,7 +205,7 @@ func ZFSListFilesystemState() (localState map[string]FilesystemState, err error) for _, e := range actual { dp, err := NewDatasetPath(e[0]) if err != nil { - fmt.Errorf("ZFS does not return parseable dataset path: %s", e[0]) + return nil, fmt.Errorf("ZFS does not return parseable dataset path: %s", e[0]) } placeholder, _ := IsPlaceholder(dp, e[1]) localState[e[0]] = FilesystemState{