From ef749d07e717ca38b7d8b525c81d6b04db5f16ed Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 1 Jun 2011 12:14:50 -0500 Subject: json-parser: propagate error from parser Signed-off-by: Michael Roth Signed-off-by: Anthony Liguori --- qerror.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qerror.h') diff --git a/qerror.h b/qerror.h index 13ad9d4321..8b971fd87b 100644 --- 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 } }" -- cgit v1.2.3-55-g7522