mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
qerror: introduce QERR_INVALID_OPTION_GROUP
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@@ -155,6 +155,10 @@ static const QErrorStringTable qerror_table[] = {
|
||||
.error_fmt = QERR_INVALID_BLOCK_FORMAT,
|
||||
.desc = "Invalid block format '%(name)'",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_INVALID_OPTION_GROUP,
|
||||
.desc = "There is no option group '%(group)'",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_INVALID_PARAMETER,
|
||||
.desc = "Invalid parameter '%(name)'",
|
||||
|
||||
@@ -139,6 +139,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||
#define QERR_INVALID_BLOCK_FORMAT \
|
||||
"{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }"
|
||||
|
||||
#define QERR_INVALID_OPTION_GROUP \
|
||||
"{ 'class': 'InvalidOptionGroup', 'data': { 'group': %s } }"
|
||||
|
||||
#define QERR_INVALID_PARAMETER \
|
||||
"{ 'class': 'InvalidParameter', 'data': { 'name': %s } }"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user