mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
conf: Mark user provided strings in error messages when parsing XML
Use apostrophes to denote user provided option names when parsing the domain XML.
This commit is contained in:
parent
c4caa012c2
commit
59ae97b4d5
@ -11408,8 +11408,7 @@ virDomainDefParseXML(xmlDocPtr xml,
|
||||
int val = virDomainFeatureTypeFromString((const char *)nodes[i]->name);
|
||||
if (val < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("unexpected feature %s"),
|
||||
nodes[i]->name);
|
||||
_("unexpected feature '%s'"), nodes[i]->name);
|
||||
goto error;
|
||||
}
|
||||
def->features |= (1 << val);
|
||||
@ -11419,7 +11418,7 @@ virDomainDefParseXML(xmlDocPtr xml,
|
||||
int eoi;
|
||||
if ((eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unknown value for attribute eoi: %s"),
|
||||
_("unknown value for attribute eoi: '%s'"),
|
||||
tmp);
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user