Skip to content

Commit 119dcdf

Browse files
Merge branch '5.0'
* 5.0: Use PHP 7.2 minimum in tests run with github actions Fix exception messages containing exception messages
2 parents 892c19f + a5e420f commit 119dcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function load($file, string $type = null)
6767
try {
6868
$parsedConfig = $this->yamlParser->parseFile($path, Yaml::PARSE_CONSTANT);
6969
} catch (ParseException $e) {
70-
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML', $path).': '.$e->getMessage(), 0, $e);
70+
throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML: ', $path).$e->getMessage(), 0, $e);
7171
}
7272

7373
$collection = new RouteCollection();

0 commit comments

Comments
 (0)