Check we have a driver before using it

main
Jordi Boggiano 13 years ago
parent 1fd9174c0d
commit 22a93e7273

@ -43,6 +43,10 @@ class VcsRepository extends ArrayRepository
}
}
if (!$driver) {
throw new \InvalidArgumentException('No driver found to handle VCS repository '.$this->url);
}
$versionParser = new VersionParser;
$loader = new ArrayLoader($this->repositoryManager);
$versions = array();

Loading…
Cancel
Save