In case virXMLPropUInt() or virXMLPropULongLong() meets an
attribute with a negative integer the following error message is
printed:
Invalid value ...: Expected integer value
This message is not as good as it could be. Let users know it's a
non-negative integer we are expecting.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
if (ret < 0) {
virReportError(VIR_ERR_XML_ERROR,
- _("Invalid value for attribute '%s' in element '%s': '%s'. Expected integer value"),
+ _("Invalid value for attribute '%s' in element '%s': '%s'. Expected non-negative integer value"),
name, node->name, tmp);
return -1;
}
if (ret < 0) {
virReportError(VIR_ERR_XML_ERROR,
- _("Invalid value for attribute '%s' in element '%s': '%s'. Expected integer value"),
+ _("Invalid value for attribute '%s' in element '%s': '%s'. Expected non-negative integer value"),
name, node->name, tmp);
return -1;
}