Re: [libvirt] [PATCH 1/2] qemuDomainAttachNetDevice: Don't overwrite error on rollback

2016-11-11 Thread John Ferlan
On 11/04/2016 08:28 AM, Michal Privoznik wrote: > If there is an error hotpluging a net device (for whatever > reason) a rollback operation is performed. However, whilst doing > so various helper functions that are called report errors on > their own. This results in the original error to be

[libvirt] [PATCH 1/2] qemuDomainAttachNetDevice: Don't overwrite error on rollback

2016-11-04 Thread Michal Privoznik
If there is an error hotpluging a net device (for whatever reason) a rollback operation is performed. However, whilst doing so various helper functions that are called report errors on their own. This results in the original error to be overwritten and thus misleading the user. Signed-off-by: