[libvirt] [PATCH] Improve some error messages about unsupported APIs/URIs

Justin Clift justin at salasaga.org
Tue Jun 22 21:48:09 UTC 2010


On 06/23/2010 04:16 AM, Matthias Bolte wrote:
>          case VIR_ERR_NO_SUPPORT:
>>>  >               if (info == NULL)

Would it be practical to expand this with category messages like?

     case VIR_ERR_NO_SUPPORT_STORAGE:
         if (info == NULL)
             errmsg = _("this function is not supported by the storage 
driver");
           ...

     case VIR_ERR_NO_SUPPORT_NETWORK:
         if (info == NULL)
             errmsg = _("this function is not supported by the network 
driver");
           ...

Or maybe figure out a "%s" replaceable keyword for 
network/storage/hypervisor/etc above?

Regards and best wishes,

Justin Clift

-- 
Salasaga  -  Open Source eLearning IDE
               http://www.salasaga.org




More information about the libvir-list mailing list