Patchwork [v2,15/15] qdev_device_add(): beautify "driver not found" error message

login
register
mail settings
Submitter Laszlo Ersek
Date Feb. 5, 2013, 8:39 p.m.
Message ID <1360096768-8863-16-git-send-email-lersek@redhat.com>
Download mbox | patch
Permalink /patch/218345/
State New
Headers show

Comments

Laszlo Ersek - Feb. 5, 2013, 8:39 p.m.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
 hw/qdev-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/qdev-monitor.c b/hw/qdev-monitor.c
index 47b8e13..20c1cbe 100644
--- a/hw/qdev-monitor.c
+++ b/hw/qdev-monitor.c
@@ -480,7 +480,7 @@  DeviceState *qdev_device_add(QemuOpts *opts, Error **errp)
     }
 
     if (!obj) {
-        error_set(errp, QERR_INVALID_PARAMETER_VALUE, "driver", "device type");
+        error_setg(errp, "Driver for device type '%s' not found", driver);
         return NULL;
     }