[libvirt] [PATCH v2] Use virGetLastErrorMessage() rather than open code it

2016-04-04 Thread Hui Yiqun
getting err using virGetLastError() and then retrieving message from err asks developers to test the value of err and err->message and default to self-defined unkown error message. It's better to avoid it and use uniform virGetLastErrorMessage --- daemon/libvirtd.c | 8 +--- ex

[libvirt] [PATCH/GSoC] Use virGetLastErrorMessage() rather than open code it

2016-03-25 Thread Hui Yiqun
getting err using virGetLastError() and then retrieving message from err make developer have to test the value of err and err->message and default to self-defined unkown error message. It's better to avoid it and using uniform virGetLastErrorMessage --- daemon/libvirtd.c | 8 +-