- Return after failing in SetProperty (#21)
This commit is contained in:
parent
5ddc9a9d76
commit
c0a3acfc99
1
zfs.go
1
zfs.go
|
@ -385,6 +385,7 @@ func (d *Dataset) SetProperty(p Prop, value string) (err error) {
|
||||||
C.free(unsafe.Pointer(csValue))
|
C.free(unsafe.Pointer(csValue))
|
||||||
if errcode != 0 {
|
if errcode != 0 {
|
||||||
err = LastError()
|
err = LastError()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// Update Properties member with change made
|
// Update Properties member with change made
|
||||||
if _, err = d.GetProperty(p); err != nil {
|
if _, err = d.GetProperty(p); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue