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

Submitted by Laszlo Ersek on Feb. 5, 2013, 8:39 p.m.

Details

Message ID 1360096768-8863-16-git-send-email-lersek@redhat.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;
     }