diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-02-19 18:05:39 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 17:45:34 +0100 |
commit | 796192913d90f8df5dbb91d30e3acfd17f418e3b (patch) | |
tree | 9d1cf2bf0ab766e22e29eea55e20c514f4ae8d51 | |
parent | 0f5c787f3ad78d6539ed798290f3b096b92f3f6b (diff) | |
download | qemu-796192913d90f8df5dbb91d30e3acfd17f418e3b.tar.gz qemu-796192913d90f8df5dbb91d30e3acfd17f418e3b.tar.bz2 qemu-796192913d90f8df5dbb91d30e3acfd17f418e3b.zip |
error: New QERR_BUS_NOT_FOUND
-rw-r--r-- | qerror.c | 4 | ||||
-rw-r--r-- | qerror.h | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -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", }, @@ -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 } }" |