Jordi Boggiano 13 anni fa
parent
commit
b855643865
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Composer/Package/Loader/RootPackageLoader.php

+ 1 - 1
src/Composer/Package/Loader/RootPackageLoader.php

@@ -68,7 +68,7 @@ class RootPackageLoader extends ArrayLoader
                     throw new \UnexpectedValueException('Repository '.$index.' should be an array, '.gettype($repo).' given');
                 }
                 if (!isset($repo['type'])) {
-                    throw new \UnexpectedValueException('Repository '.$index.' must have a type defined');
+                    throw new \UnexpectedValueException('Repository '.$index.' ('.json_encode($repo).') must have a type defined');
                 }
                 $repository = $this->manager->createRepository($repo['type'], $repo);
                 $this->manager->addRepository($repository);