Skip to content

Commit 1c5a213

Browse files
committed
minor symfony#15749 missing "YAML" in the exception message. (DavidBadura)
This PR was merged into the 2.3 branch. Discussion ---------- missing "YAML" in the exception message. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#15702 | License | MIT | Doc PR | Commits ------- b95b5e2 missing "YAML" in the exception message.
2 parents 37827a2 + b95b5e2 commit 1c5a213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Mapping/Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function parseFile($path)
121121
try {
122122
$classes = $this->yamlParser->parse(file_get_contents($path));
123123
} catch (ParseException $e) {
124-
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid.', $path), 0, $e);
124+
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML.', $path), 0, $e);
125125
}
126126

127127
// empty file

0 commit comments

Comments
 (0)