New QERR_INVALID_PARAMETER
authorMarkus Armbruster <armbru@redhat.com>
Mon, 7 Dec 2009 20:37:13 +0000 (21:37 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 22:34:36 +0000 (16:34 -0600)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qerror.c
qerror.h

index e6b7f62aa9c589c09bdf667daab12e9bb161c8e4..aa89a3d7db4d0a724ace187def02e3d264f9bf42 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -76,6 +76,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_INVALID_BLOCK_FORMAT,
         .desc      = "Invalid block format %(name)",
     },
+    {
+        .error_fmt = QERR_INVALID_PARAMETER,
+        .desc      = "Invalid parameter %(name)",
+    },
     {
         .error_fmt = QERR_INVALID_PARAMETER_TYPE,
         .desc      = "Invalid parameter type, expected: %(expected)",
index 2262619a68e2e0deed7cf11a818a183fb969f00c..48f1ab6b4e1a11f8a5a353f175f09b5dfbef0ca1 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -65,6 +65,9 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_INVALID_BLOCK_FORMAT \
     "{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }"
 
+#define QERR_INVALID_PARAMETER \
+    "{ 'class': 'invalid_parameter', 'data': { 'name': %s } }"
+
 #define QERR_INVALID_PARAMETER_TYPE \
     "{ 'class': 'InvalidParameterType', 'data': { 'name': %s,'expected': %s } }"