mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: Improve core dump config error message
The message didn't seem to be much helpful
This commit is contained in:
parent
d3d5920181
commit
cdf0ba1c3a
@ -9265,16 +9265,13 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* and info about it */
|
/* and info about it */
|
||||||
tmp = virXPathString("string(./memory[1]/@dumpCore)", ctxt);
|
if ((tmp = virXPathString("string(./memory[1]/@dumpCore)", ctxt)) &&
|
||||||
if (tmp) {
|
(def->mem.dump_core = virDomainMemDumpTypeFromString(tmp)) <= 0) {
|
||||||
def->mem.dump_core = virDomainMemDumpTypeFromString(tmp);
|
virReportError(VIR_ERR_XML_ERROR,
|
||||||
|
_("Invalid memory core dump attribute value '%s'"), tmp);
|
||||||
if (def->mem.dump_core <= 0) {
|
|
||||||
virReportError(VIR_ERR_XML_ERROR, _("Bad value '%s'"), tmp);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
VIR_FREE(tmp);
|
VIR_FREE(tmp);
|
||||||
}
|
|
||||||
|
|
||||||
if (def->mem.cur_balloon > def->mem.max_balloon) {
|
if (def->mem.cur_balloon > def->mem.max_balloon) {
|
||||||
/* Older libvirt could get into this situation due to
|
/* Older libvirt could get into this situation due to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user