Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Hg.php

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\Util

Code

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));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal