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:
Peter Krempa 2013-09-26 10:09:00 +02:00
parent c4caa012c2
commit 59ae97b4d5

View File

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