mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add InvalidRepositoryException
This commit is contained in:
parent
150b7867e3
commit
4f5d08e2ad
6 changed files with 47 additions and 9 deletions
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue