qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vnc: Fix QMP change not to use funky error class
@ 2015-03-13 17:43 Markus Armbruster
  2015-03-13 17:48 ` Markus Armbruster
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Markus Armbruster @ 2015-03-13 17:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel

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.
---
 ui/vnc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/vnc.c b/ui/vnc.c
index 6f9b718..a950016 100644
--- a/ui/vnc.c
+++ b/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;
         }
 
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-17  7:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13 17:43 [Qemu-devel] [PATCH] vnc: Fix QMP change not to use funky error class Markus Armbruster
2015-03-13 17:48 ` Markus Armbruster
2015-03-13 19:15   ` Eric Blake
2015-03-13 17:50 ` Patchew Tool
2015-03-13 17:56   ` Peter Maydell
2015-03-13 18:57     ` John Snow
2015-03-17  1:56     ` Fam Zheng
2015-03-17  7:49 ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).