mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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);
|
int val = virDomainFeatureTypeFromString((const char *)nodes[i]->name);
|
||||||
if (val < 0) {
|
if (val < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("unexpected feature %s"),
|
_("unexpected feature '%s'"), nodes[i]->name);
|
||||||
nodes[i]->name);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
def->features |= (1 << val);
|
def->features |= (1 << val);
|
||||||
@ -11419,7 +11418,7 @@ virDomainDefParseXML(xmlDocPtr xml,
|
|||||||
int eoi;
|
int eoi;
|
||||||
if ((eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0) {
|
if ((eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("unknown value for attribute eoi: %s"),
|
_("unknown value for attribute eoi: '%s'"),
|
||||||
tmp);
|
tmp);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user