InvalidResourceException file name
This commit is contained in:
parent
41adf224b5
commit
2e04e23c6a
@ -114,7 +114,7 @@ class XliffFileLoader implements LoaderInterface
|
||||
$source = str_replace('http://www.w3.org/2001/xml.xsd', $location, $source);
|
||||
|
||||
if (!@$dom->schemaValidateSource($source)) {
|
||||
throw new InvalidResourceException(implode("\n", $this->getXmlErrors($internalErrors)));
|
||||
throw new InvalidResourceException(sprintf('Invalid resource provided: "%s"; Errors: %s', $file, implode("\n", $this->getXmlErrors($internalErrors))));
|
||||
}
|
||||
|
||||
$dom->normalizeDocument();
|
||||
|
Reference in New Issue
Block a user