diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-03-13 18:43:09 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-03-17 14:24:26 +0100 |
commit | f3cf80e805bc22980733606df15917223f311f4b (patch) | |
tree | 7843f9ad442cf1bd331edbcfd3474e131d4a1ccc /ui/vnc.c | |
parent | 5a4992834daec85c3913654903fb9f4f954e585a (diff) | |
download | qemu-f3cf80e805bc22980733606df15917223f311f4b.zip qemu-f3cf80e805bc22980733606df15917223f311f4b.tar.gz qemu-f3cf80e805bc22980733606df15917223f311f4b.tar.bz2 |
vnc: Fix QMP change not to use funky error class
Error classes are a leftover from the days of "rich" error objects.
New code should always use ERROR_CLASS_GENERIC_ERROR. Commit 1d0d59f
added a use of ERROR_CLASS_DEVICE_NOT_FOUND. Replace it.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/vnc.c')
-rw-r--r-- | ui/vnc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3594,7 +3594,7 @@ void vnc_display_open(const char *id, Error **errp) dev = qdev_find_recursive(sysbus_get_default(), device_id); if (dev == NULL) { - error_set(errp, QERR_DEVICE_NOT_FOUND, device_id); + error_setg(errp, "Device '%s' not found", device_id); goto fail; } |