1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add InvalidRepositoryException

This commit is contained in:
Jordi Boggiano 2012-11-08 14:35:01 +01:00
parent 150b7867e3
commit 4f5d08e2ad
6 changed files with 47 additions and 9 deletions

View file

@ -252,7 +252,7 @@ class VcsRepository extends ArrayRepository
}
if (!$this->getPackages()) {
throw new \RuntimeException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');
throw new InvalidRepositoryException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');
}
}