]> git.proxmox.com Git - qemu.git/blobdiff - qerror.h
json-parser: propagate error from parser
[qemu.git] / qerror.h
index 13ad9d43216ba9890d834dfe856051cd61e8c426..8b971fd87b9792ada5021e5c6db9e0c4ffad8b23 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -121,6 +121,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_JSON_PARSING \
     "{ 'class': 'JSONParsing', 'data': {} }"
 
+#define QERR_JSON_PARSE_ERROR \
+    "{ 'class': 'JSONParseError', 'data': { 'message': %s } }"
+
 #define QERR_KVM_MISSING_CAP \
     "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }"