Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 87601512 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

xmlvalidator: restore orignial functionality - return null in case no errors occured

parent 6121ce59
Branches
Tags
No related merge requests found
......@@ -32,6 +32,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
using System.Xml.Schema;
using TUGraz.VectoCommon.Exceptions;
......@@ -98,10 +99,7 @@ namespace TUGraz.VectoCore.Utils
_validationErrorAction(args?.Severity ?? XmlSeverityType.Error, new ValidationEvent { ValidationEventArgs = args });
}
public string ValidationError
{
get { return string.Join(Environment.NewLine, _validationErrors); }
}
public string ValidationError => _validationErrors.Any() ? string.Join(Environment.NewLine, _validationErrors) : null;
public static void CallBackExceptionOnError(XmlSeverityType severity, ValidationEvent evt)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment