mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 06:13:46 +08:00
error: New QERR_PROPERTY_NOT_FOUND
This commit is contained in:
parent
fc5469d87b
commit
c58a35f8e3
4
qerror.c
4
qerror.c
@ -104,6 +104,10 @@ static const QErrorStringTable qerror_table[] = {
|
||||
.error_fmt = QERR_OPEN_FILE_FAILED,
|
||||
.desc = "Could not open '%(filename)'",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_PROPERTY_NOT_FOUND,
|
||||
.desc = "Property '%(device).%(property)' not found",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_QMP_BAD_INPUT_OBJECT,
|
||||
.desc = "Bad QMP input object",
|
||||
|
3
qerror.h
3
qerror.h
@ -90,6 +90,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||
#define QERR_OPEN_FILE_FAILED \
|
||||
"{ 'class': 'OpenFileFailed', 'data': { 'filename': %s } }"
|
||||
|
||||
#define QERR_PROPERTY_NOT_FOUND \
|
||||
"{ 'class': 'PropertyNotFound', 'data': { 'device': %s, 'property': %s } }"
|
||||
|
||||
#define QERR_QMP_BAD_INPUT_OBJECT \
|
||||
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user