Skip to content

Commit

Permalink
- Return after failing in SetProperty (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslmvc authored and Faruk Kasumovic committed Jan 17, 2020
1 parent 5ddc9a9 commit c0a3acf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c0a3acf

Please sign in to comment.