Tweak a few "Parameter 'NAME' expects THING" error message

Change to "expects a THING" where that's an obvious improvement

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201113082626.2725812-11-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2020-11-13 09:26:26 +01:00
parent 74b97760dc
commit 6cc0667d9b
5 changed files with 6 additions and 6 deletions

View file

@ -237,7 +237,7 @@ static DeviceClass *qdev_get_device_class(const char **driver, Error **errp)
if (object_class_is_abstract(oc)) {
error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "driver",
"non-abstract device type");
"a non-abstract device type");
return NULL;
}
@ -245,7 +245,7 @@ static DeviceClass *qdev_get_device_class(const char **driver, Error **errp)
if (!dc->user_creatable ||
(qdev_hotplug && !dc->hotpluggable)) {
error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "driver",
"pluggable device type");
"a pluggable device type");
return NULL;
}