Skip to content

Commit 3d576ef

Browse files
skafandrifabpot
authored andcommitted
Include file path in exception
1 parent 4eb4a60 commit 3d576ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function load($resource, $locale, $domain = 'messages')
5050
try {
5151
$messages = $this->yamlParser->parse(file_get_contents($resource));
5252
} catch (ParseException $e) {
53-
throw new InvalidResourceException('Error parsing YAML.', 0, $e);
53+
throw new InvalidResourceException(sprintf('Error parsing YAML, invalid file "%s"', $resource), 0, $e);
5454
}
5555

5656
// empty file

0 commit comments

Comments
 (0)