提交 7bbd8237 编写于 作者: M Markus Armbruster

error: New QERR_BUS_NOT_FOUND

上级 fc98eb43
......@@ -40,6 +40,10 @@ static const QType qerror_type = {
* "running out of foo: %(foo)%%"
*/
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 } }"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册