1
0
Fork 0

Improve error message and fix typo, closes #3657

pull/3662/head
Jordi Boggiano 2015-01-20 16:39:06 +00:00
parent c8011af219
commit 825b4b9c63
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class Factory
foreach ($config->getRepositories() as $index => $repo) { foreach ($config->getRepositories() as $index => $repo) {
if (is_string($repo)) { if (is_string($repo)) {
throw new \UnexpectedValueException('Repositories should be an array of repository defintions, only a single repository was given'); throw new \UnexpectedValueException('"repositories" should be an array of repository definitions, only a single repository was given');
} }
if (!is_array($repo)) { if (!is_array($repo)) {
throw new \UnexpectedValueException('Repository "'.$index.'" ('.json_encode($repo).') should be an array, '.gettype($repo).' given'); throw new \UnexpectedValueException('Repository "'.$index.'" ('.json_encode($repo).') should be an array, '.gettype($repo).' given');