Skip to content

Commit afd0b10

Browse files
committed
minor #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 #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy