Skip to content

Commit 2e04e23

Browse files
DancZerfabpot
authored andcommitted
InvalidResourceException file name
1 parent 41adf22 commit 2e04e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Translation/Loader/XliffFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function parseFile($file)
114114
$source = str_replace('http://www.w3.org/2001/xml.xsd', $location, $source);
115115

116116
if (!@$dom->schemaValidateSource($source)) {
117-
throw new InvalidResourceException(implode("\n", $this->getXmlErrors($internalErrors)));
117+
throw new InvalidResourceException(sprintf('Invalid resource provided: "%s"; Errors: %s', $file, implode("\n", $this->getXmlErrors($internalErrors))));
118118
}
119119

120120
$dom->normalizeDocument();

0 commit comments

Comments
 (0)