summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-03-16 17:44:38 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 17:45:26 +0100
commit84745d68e7338271f0f7ec567ab52abf20a0ce9c (patch)
tree234d50b2011506360fa6493c0c267dce5e0c1d1f
parent9c5eff958d527d1803114a6f78d086fb313b9bd2 (diff)
error: New QERR_PROPERTY_VALUE_NOT_FOUND
-rw-r--r--qerror.c4
-rw-r--r--qerror.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c
index 6b59388292..d8eb32998a 100644
--- a/qerror.c
+++ b/qerror.c
@@ -117,6 +117,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Property '%(device).%(property)' can't take value '%(value)', it's in use",
},
{
+ .error_fmt = QERR_PROPERTY_VALUE_NOT_FOUND,
+ .desc = "Property '%(device).%(property)' can't find value '%(value)'",
+ },
+ {
.error_fmt = QERR_QMP_BAD_INPUT_OBJECT,
.desc = "Bad QMP input object",
},
diff --git a/qerror.h b/qerror.h
index f7a10b7b9a..a0730edd62 100644
--- a/qerror.h
+++ b/qerror.h
@@ -99,6 +99,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_PROPERTY_VALUE_IN_USE \
"{ 'class': 'PropertyValueInUse', 'data': { 'device': %s, 'property': %s, 'value': %s } }"
+#define QERR_PROPERTY_VALUE_NOT_FOUND \
+ "{ 'class': 'PropertyValueNotFound', 'data': { 'device': %s, 'property': %s, 'value': %s } }"
+
#define QERR_QMP_BAD_INPUT_OBJECT \
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"