Skip to content

Commit

Permalink
Merge pull request #6458 from Codeception/4.1-fix-override-error-message
Browse files Browse the repository at this point in the history
Fix error message when incorrect value is passed to --override
  • Loading branch information
Naktibalda committed May 14, 2022
2 parents b815ea3 + 5579083 commit c502768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Command/Shared/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function overrideConfig($configOptions)
foreach ($configOptions as $option) {
$keys = explode(': ', $option);
if (count($keys) < 2) {
throw new \InvalidArgumentException('--config-option should have config passed as "key:value"');
throw new \InvalidArgumentException('--override should have config passed as "key: value"');
}
$value = array_pop($keys);
$yaml = '';
Expand Down

0 comments on commit c502768

Please sign in to comment.