File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function processFile(array $config)
33
33
// Find the expected params
34
34
$ expectedValues = $ yamlParser ->parse (file_get_contents ($ config ['dist-file ' ]));
35
35
if (!isset ($ expectedValues [$ parameterKey ])) {
36
- throw new \InvalidArgumentException ('The dist file seems invalid. ' );
36
+ throw new \InvalidArgumentException (sprintf ( 'The top-level key %s is missing. ' , $ parameterKey ) );
37
37
}
38
38
$ expectedParams = (array ) $ expectedValues [$ parameterKey ];
39
39
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function provideInvalidConfiguration()
74
74
array (
75
75
'file ' => 'fixtures/invalid/missing_top_level.yml ' ,
76
76
),
77
- 'The dist file seems invalid . ' ,
77
+ 'The top-level key parameters is missing . ' ,
78
78
),
79
79
'invalid values in the existing file ' => array (
80
80
array (
You can’t perform that action at this time.
0 commit comments