mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-09 18:40:49 -07:00
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>
This commit is contained in:
parent
5a4992834d
commit
f3cf80e805
1 changed files with 1 additions and 1 deletions
2
ui/vnc.c
2
ui/vnc.c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue