diff options
-rw-r--r-- | qdev-monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qdev-monitor.c b/qdev-monitor.c index 177b849abb..ef63cbd7bb 100644 --- a/qdev-monitor.c +++ b/qdev-monitor.c @@ -479,7 +479,8 @@ DeviceState *qdev_device_add(QemuOpts *opts) } if (!object_class_dynamic_cast(oc, TYPE_DEVICE)) { - qerror_report(QERR_INVALID_PARAMETER_VALUE, "driver", "device type"); + qerror_report(ERROR_CLASS_GENERIC_ERROR, + "'%s' is not a valid device model name", driver); return NULL; } |