diff --git a/src/Symfony/Component/Translation/Loader/YamlFileLoader.php b/src/Symfony/Component/Translation/Loader/YamlFileLoader.php index 66ab2ba529..419a82dcc6 100644 --- a/src/Symfony/Component/Translation/Loader/YamlFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/YamlFileLoader.php @@ -50,7 +50,7 @@ class YamlFileLoader extends ArrayLoader implements LoaderInterface try { $messages = $this->yamlParser->parse(file_get_contents($resource)); } catch (ParseException $e) { - throw new InvalidResourceException('Error parsing YAML.', 0, $e); + throw new InvalidResourceException(sprintf('Error parsing YAML, invalid file "%s"', $resource), 0, $e); } // empty file