1
0
Fork 0

Improve message some more, refs #3655

pull/3657/head
Jordi Boggiano 2015-01-20 10:49:03 +00:00
parent 57468f6204
commit c8011af219
1 changed files with 3 additions and 0 deletions

View File

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