]> git.proxmox.com Git - qemu.git/commitdiff
QError: New QERR_VNC_SERVER_FAILED
authorMarkus Armbruster <armbru@redhat.com>
Mon, 7 Dec 2009 20:37:08 +0000 (21:37 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Dec 2009 22:34:35 +0000 (16:34 -0600)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qerror.c
qerror.h

index 1bb68c417a44a831482317568b61dbb078990760..128a91e567bc8fac429f6f829c813a357b1098b0 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -100,6 +100,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_UNDEFINED_ERROR,
         .desc      = "An undefined error has ocurred",
     },
+    {
+        .error_fmt = QERR_VNC_SERVER_FAILED,
+        .desc      = "Could not start VNC server on %(target)",
+    },
     {}
 };
 
index b85689933b2cf6d6e13d90f6a22d6f076369a2d9..1a05d9a66ae6740abdc2a7f8315702994535f7be 100644 (file)
--- a/qerror.h
+++ b/qerror.h
@@ -83,4 +83,7 @@ QError *qobject_to_qerror(const QObject *obj);
 #define QERR_UNDEFINED_ERROR \
     "{ 'class': 'UndefinedError', 'data': {} }"
 
+#define QERR_VNC_SERVER_FAILED \
+    "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
+
 #endif /* QERROR_H */