[libvirt] [PATCH] Don't overwrite errors in qemuTranslateDiskSourcePool

2013-07-24 Thread Ján Tomko
Both virStoragePoolFree and virStorageVolFree reset the last error, which might lead to the cryptic message: An error occurred, but the cause is unknown When the volume wasn't found, virStorageVolFree was called with NULL, leading to an error: invalid storage volume pointer in virStorageVolFree

Re: [libvirt] [PATCH] Don't overwrite errors in qemuTranslateDiskSourcePool

2013-07-24 Thread Guannan Ren
On 07/24/2013 04:43 PM, Ján Tomko wrote: Both virStoragePoolFree and virStorageVolFree reset the last error, which might lead to the cryptic message: An error occurred, but the cause is unknown When the volume wasn't found, virStorageVolFree was called with NULL, leading to an error: invalid