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 fkasumovic committed Oct 18, 2019
1 parent 1e7a4fa commit f02b60a
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 @@ -384,6 +384,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 f02b60a

Please sign in to comment.