From c0a3acfc9976c6c79e647ad0a80bf197d65355bd Mon Sep 17 00:00:00 2001 From: Asmir Selimovic <40600512+aslmvc@users.noreply.github.com> Date: Fri, 18 Oct 2019 14:46:24 +0200 Subject: [PATCH] - Return after failing in SetProperty (#21) --- zfs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zfs.go b/zfs.go index 0dfc44c..af3f32d 100644 --- a/zfs.go +++ b/zfs.go @@ -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 {