[libvirt] [PATCH 0/4] Unify error messages

Michal Privoznik mprivozn at redhat.com
Wed Apr 27 14:57:42 UTC 2011


As libvirt error codes evolved over time, it was more unclear to know, which
code should be use in what cases. This patch series tries to correct those
places, so we don't say it is internal error, when in fact incorrect XML was
given. Also some error messages were changed to give more hints.

Michal Privoznik (4):
  Fix error messages codes when TypeFromString fails
  New error code VIR_ERR_XML_CONFIG
  Improve incorrect root element error messages
  Change XML parsing error codes when details are presented.

 include/libvirt/virterror.h        |    1 +
 src/conf/cpu_conf.c                |   13 ++--
 src/conf/domain_conf.c             |  165 +++++++++++++++++++-----------------
 src/conf/interface_conf.c          |   56 ++++++------
 src/conf/network_conf.c            |   20 +++--
 src/conf/node_device_conf.c        |   10 ++-
 src/conf/nwfilter_conf.c           |   16 ++--
 src/conf/secret_conf.c             |   14 ++--
 src/conf/storage_conf.c            |   66 ++++++++-------
 src/conf/storage_encryption_conf.c |   14 ++--
 src/security/virt-aa-helper.c      |    3 +-
 src/test/test_driver.c             |   13 ++-
 src/util/virterror.c               |    6 ++
 src/util/xml.c                     |    2 +-
 14 files changed, 218 insertions(+), 181 deletions(-)

-- 
1.7.4.4




More information about the libvir-list mailing list