QError: New QERR_VNC_SERVER_FAILED
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7a84cb23c0
commit
a6906e31a8
4
qerror.c
4
qerror.c
@ -100,6 +100,10 @@ static const QErrorStringTable qerror_table[] = {
|
|||||||
.error_fmt = QERR_UNDEFINED_ERROR,
|
.error_fmt = QERR_UNDEFINED_ERROR,
|
||||||
.desc = "An undefined error has ocurred",
|
.desc = "An undefined error has ocurred",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.error_fmt = QERR_VNC_SERVER_FAILED,
|
||||||
|
.desc = "Could not start VNC server on %(target)",
|
||||||
|
},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
3
qerror.h
3
qerror.h
@ -83,4 +83,7 @@ QError *qobject_to_qerror(const QObject *obj);
|
|||||||
#define QERR_UNDEFINED_ERROR \
|
#define QERR_UNDEFINED_ERROR \
|
||||||
"{ 'class': 'UndefinedError', 'data': {} }"
|
"{ 'class': 'UndefinedError', 'data': {} }"
|
||||||
|
|
||||||
|
#define QERR_VNC_SERVER_FAILED \
|
||||||
|
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
|
||||||
|
|
||||||
#endif /* QERROR_H */
|
#endif /* QERROR_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user