endpoing: receiver: return visitErr on traversal error

fixes #137
This commit is contained in:
Christian Schwarz 2019-03-16 14:46:07 +01:00
parent b2c5ffcaea
commit 5eababe0b0

View File

@ -349,7 +349,7 @@ func (s *Receiver) Receive(ctx context.Context, req *pdu.ReceiveReq, receive zfs
getLogger(ctx).WithField("visitErr", visitErr).Debug("complete tree-walk")
if visitErr != nil {
return nil, err
return nil, visitErr
}
var clearPlaceholderProperty bool