zfs: zfsGet: return *ZFSError on exec failure

refs #178
This commit is contained in:
Christian Schwarz 2019-06-08 23:00:00 +02:00
parent d81a1818d6
commit e5f944c2f8

View File

@ -986,6 +986,10 @@ func zfsGet(path string, props []string, allowedSources zfsPropertySource) (*ZFS
} }
} }
} }
return nil, &ZFSError{
Stderr: exitErr.Stderr,
WaitErr: exitErr,
}
} }
return nil, err return nil, err
} }