- Return after failing in SetProperty (#21)

This commit is contained in:
Asmir Selimovic 2019-10-18 14:46:24 +02:00 committed by Faruk Kasumovic
parent 5ddc9a9d76
commit c0a3acfc99
1 changed files with 1 additions and 0 deletions

1
zfs.go
View File

@ -385,6 +385,7 @@ func (d *Dataset) SetProperty(p Prop, value string) (err error) {
C.free(unsafe.Pointer(csValue))
if errcode != 0 {
err = LastError()
return
}
// Update Properties member with change made
if _, err = d.GetProperty(p); err != nil {