aboutsummaryrefslogtreecommitdiff
path: root/qerror.c
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-07-19 15:41:52 -0500
committerLuiz Capitulino <lcapitulino@gmail.com>2011-07-21 16:48:15 -0300
commitac32c7807640f04682ea17bca17c22f8b9264d62 (patch)
treea9af216ffb4991e93fb56658c8abe924d5f95cae /qerror.c
parentb84da8319586e31c2065b1a39aca5ff15e204d5a (diff)
downloadqemu-ac32c7807640f04682ea17bca17c22f8b9264d62.zip
qemu-ac32c7807640f04682ea17bca17c22f8b9264d62.tar.gz
qemu-ac32c7807640f04682ea17bca17c22f8b9264d62.tar.bz2
qerror: add QERR_JSON_PARSE_ERROR to qerror.c
Missing from previous addition of error to qerror.h. Needed for qerror_format() and friends. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Diffstat (limited to 'qerror.c')
-rw-r--r--qerror.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c
index d7fcd93..c92adfc 100644
--- a/qerror.c
+++ b/qerror.c
@@ -141,6 +141,11 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Invalid JSON syntax",
},
{
+ .error_fmt = QERR_JSON_PARSE_ERROR,
+ .desc = "JSON parse error, %(message)",
+
+ },
+ {
.error_fmt = QERR_KVM_MISSING_CAP,
.desc = "Using KVM without %(capability), %(feature) unavailable",
},