Skip to content

Commit afd0b10

Browse files
committed
minor symfony#14762 InvalidResourceException file name (DancZer)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes symfony#14762). Discussion ---------- InvalidResourceException file name Added filen ame to the InvalidResourceException, Commits ------- 2e04e23 InvalidResourceException file name
2 parents 41adf22 + 2e04e23 commit afd0b10

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)