function Hg::throwException
Parameters
non-empty-string $message:
Return value
never
1 call to Hg::throwException()
- Hg::runCommand in vendor/
composer/ composer/ src/ Composer/ Util/ Hg.php
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Hg.php, line 94
Class
- Hg
- @author Jonas Renaudot <jonas.renaudot@gmail.com>
Namespace
Composer\UtilCode
private function throwException($message, string $url) : void {
if (null === self::getVersion($this->process)) {
throw new \RuntimeException(Url::sanitize('Failed to clone ' . $url . ', hg was not found, check that it is installed and in your PATH env.' . "\n\n" . $this->process
->getErrorOutput()));
}
throw new \RuntimeException(Url::sanitize($message));
}