aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-19 18:05:39 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 17:45:34 +0100
commit7bbd823701cf4447b5c23430f1ad78ce501793b4 (patch)
tree9d1cf2bf0ab766e22e29eea55e20c514f4ae8d51
parentfc98eb430e49077710b0a6f287fc685c78e12556 (diff)
error: New QERR_BUS_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 d8eb32998a..75f7b58465 100644
--- a/qerror.c
+++ b/qerror.c
@@ -41,6 +41,10 @@ static const QType qerror_type = {
*/
static const QErrorStringTable qerror_table[] = {
{
+ .error_fmt = QERR_BUS_NOT_FOUND,
+ .desc = "Bus '%(bus)' not found",
+ },
+ {
.error_fmt = QERR_COMMAND_NOT_FOUND,
.desc = "The command %(name) has not been found",
},
diff --git a/qerror.h b/qerror.h
index a0730edd62..84928080fc 100644
--- a/qerror.h
+++ b/qerror.h
@@ -42,6 +42,9 @@ QError *qobject_to_qerror(const QObject *obj);
/*
* QError class list
*/
+#define QERR_BUS_NOT_FOUND \
+ "{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
+
#define QERR_COMMAND_NOT_FOUND \
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"