merged branch instaclick/ignore-validation-exception (PR #4748)
Commits
-------
383efdf
Ignore validation exception so we get a more informative error message from $this->getXmlErrors().
Discussion
----------
Ignore validation exception so we get a more informative error message
Ignore validation exception so we get a more informative error message from $this->getXmlErrors().
This is consistent with https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Translation/Loader/XliffFileLoader.php#L82
This commit is contained in:
commit
63463c4782
@ -345,7 +345,7 @@ EOF
|
||||
;
|
||||
|
||||
$current = libxml_use_internal_errors(true);
|
||||
$valid = $dom->schemaValidateSource($source);
|
||||
$valid = @$dom->schemaValidateSource($source);
|
||||
foreach ($tmpfiles as $tmpfile) {
|
||||
@unlink($tmpfile);
|
||||
}
|
||||
|
Reference in New Issue
Block a user