Skip to content

Commit

Permalink
Merge pull request #54 from peter-gribanov/typo
Browse files Browse the repository at this point in the history
Fix typo in exception messages
  • Loading branch information
peter-gribanov committed Mar 11, 2020
2 parents f9009c0 + bad7af9 commit 8967063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,23 +311,23 @@ private function validateDatabases(NodeDefinition $root_node): void
->then(static function (array $v): array {
foreach ($v['databases'] as $name => $database) {
if (empty($database['license'])) {
throw new \InvalidArgumentException(sprintf('License for downloaded databases "%s" is not specified.', $name));
throw new \InvalidArgumentException(sprintf('License for downloaded database "%s" is not specified.', $name));
}

if (empty($database['edition'])) {
throw new \InvalidArgumentException(sprintf('Edition of downloaded databases "%s" is not selected.', $name));
throw new \InvalidArgumentException(sprintf('Edition of downloaded database "%s" is not selected.', $name));
}

if (empty($database['url'])) {
throw new \InvalidArgumentException(sprintf('URL for download databases "%s" is not specified.', $name));
throw new \InvalidArgumentException(sprintf('URL for download database "%s" is not specified.', $name));
}

if (empty($database['path'])) {
throw new \InvalidArgumentException(sprintf('The destination path to download database "%s" is not specified.', $name));
}

if (empty($database['locales'])) {
throw new \InvalidArgumentException(sprintf('The list of locales for databases "%s" should not be empty.', $name));
throw new \InvalidArgumentException(sprintf('The list of locales for database "%s" should not be empty.', $name));
}
}

Expand Down

0 comments on commit 8967063

Please sign in to comment.