error, qerror: pass desc string to error calls
commitdf1e608a01eb0d55d6639d97f575dba37a44ac4a
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Jul 2012 20:51:03 +0000 (27 17:51 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 13 Aug 2012 17:17:53 +0000 (13 14:17 -0300)
treeba00f049fb700fd96202ef952fe600e7a05b3093
parent7795b166d9d1e2b33d428f5acab6d0d5e617ee91
error, qerror: pass desc string to error calls

This commit changes all QERR_ macros to contain a human message (ie.
the desc string found in qerr_table[]) instead of a json dictionary
in string format.

Before this commit, error_set() and qerror_report() would receive
a json dictionary in string format and build a qobject from it. Now,
both function receive a human message instead and the qobject is
not built anymore.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
error.c
error.h
qerror.c
qerror.h