InvalidResourceException file name

This commit is contained in:
Ladislav Tánczos 2015-05-27 16:15:38 +02:00 committed by Fabien Potencier
parent 41adf224b5
commit 2e04e23c6a

View File

@ -114,7 +114,7 @@ class XliffFileLoader implements LoaderInterface
$source = str_replace('http://www.w3.org/2001/xml.xsd', $location, $source); $source = str_replace('http://www.w3.org/2001/xml.xsd', $location, $source);
if (!@$dom->schemaValidateSource($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(); $dom->normalizeDocument();