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
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);
|
dev = qdev_find_recursive(sysbus_get_default(), device_id);
|
||||||
if (dev == NULL) {
|
if (dev == NULL) {
|
||||||
error_set(errp, QERR_DEVICE_NOT_FOUND, device_id);
|
error_setg(errp, "Device '%s' not found", device_id);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user