From e5f944c2f8b96f4e17b6ab8c2ae74769376a6ac7 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sat, 8 Jun 2019 23:00:00 +0200 Subject: [PATCH] zfs: zfsGet: return *ZFSError on exec failure refs #178 --- zfs/zfs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zfs/zfs.go b/zfs/zfs.go index fd40917..c0dfcc6 100644 --- a/zfs/zfs.go +++ b/zfs/zfs.go @@ -986,6 +986,10 @@ func zfsGet(path string, props []string, allowedSources zfsPropertySource) (*ZFS } } } + return nil, &ZFSError{ + Stderr: exitErr.Stderr, + WaitErr: exitErr, + } } return nil, err }