Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 24, 2020
1 parent 75be2d4 commit 2cb6657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Downloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function fetchCertificates(string $hostName): array
);

if (! empty($errorDescription)) {
throw $this->generateFailureException($connectTo, $errorDescription);
throw $this->buildFailureException($connectTo, $errorDescription);
}

if (! $client) {
Expand All @@ -180,7 +180,7 @@ protected function fetchCertificates(string $hostName): array
return $response;
}

protected function generateFailureException(string $hostName, string $errorDescription)
protected function buildFailureException(string $hostName, string $errorDescription)
{
if (str_contains($errorDescription, 'getaddrinfo failed')) {
return CouldNotDownloadCertificate::hostDoesNotExist($hostName);
Expand Down

0 comments on commit 2cb6657

Please sign in to comment.