- Return after failing in SetProperty (#21)
This commit is contained in:
parent
0f8f050563
commit
ac0486e24f
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