mirror of https://github.com/winsw/winsw
Validatoin Exception - Warning removed
parent
c4c32a8778
commit
2bc768e92f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue