@@ -41,6 +41,10 @@ static const QType qerror_type = {
*/
static const QErrorStringTable qerror_table[] = {
{
+ .error_fmt = QERR_ASYNC_MSG_NOT_FOUND,
+ .desc = "Asynchronous message %(name) has not been found",
+ },
+ {
.error_fmt = QERR_COMMAND_NOT_FOUND,
.desc = "The command %(name) has not been found",
},
@@ -40,6 +40,9 @@ QError *qobject_to_qerror(const QObject *obj);
/*
* QError class list
*/
+#define QERR_ASYNC_MSG_NOT_FOUND \
+ "{ 'class': 'AsyncMsgNotFound', 'data': { 'name': %s } }"
+
#define QERR_COMMAND_NOT_FOUND \
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)