]> git.proxmox.com Git - qemu.git/commitdiff
qerror: add QERR_JSON_PARSE_ERROR to qerror.c
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 19 Jul 2011 20:41:52 +0000 (15:41 -0500)
committerLuiz Capitulino <lcapitulino@gmail.com>
Thu, 21 Jul 2011 19:48:15 +0000 (16:48 -0300)
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>
qerror.c

index d7fcd93cad2658ce3c87977afef76f887e7bee2f..c92adfcb13d0e13ba9507843ccf4fc863a0fc6d7 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -140,6 +140,11 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_JSON_PARSING,
         .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",