Re: [libvirt] [PATCH 2/3] util: added virGetLastErrorCode/Domain

2018-05-09 Thread Erik Skultety
On Sat, May 05, 2018 at 01:04:20PM +0100, ramyelkest wrote: > Many places in the code call virGetLastError() just to check the > raised error code, or domain. However virGetLastError() can return > NULL, so the code has to check for that first. This patch therefore > introduces

[libvirt] [PATCH 2/3] util: added virGetLastErrorCode/Domain

2018-05-05 Thread ramyelkest
Many places in the code call virGetLastError() just to check the raised error code, or domain. However virGetLastError() can return NULL, so the code has to check for that first. This patch therefore introduces virGetLasErrorCode/Domain function which always returns a valid error code/domain