Validatoin Exception - Warning removed

pull/460/merge^2
Buddhika Chathuranga 2020-04-04 16:52:07 +05:30
parent c4c32a8778
commit 2bc768e92f
1 changed files with 1 additions and 5 deletions

View File

@ -124,11 +124,7 @@ namespace winsw
private void XmlValidationEventHandler(object sender, ValidationEventArgs e) private void XmlValidationEventHandler(object sender, ValidationEventArgs e)
{ {
if (e.Severity == XmlSeverityType.Warning) if (e.Severity == XmlSeverityType.Error)
{
throw new XmlException("[Warning] XML validation - " + e.Message);
}
else if (e.Severity == XmlSeverityType.Error)
{ {
throw new XmlException("[Error] XML validation - " + e.Message); throw new XmlException("[Error] XML validation - " + e.Message);
} }