Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 17, 2021
1 parent 5d6acee commit bb5b2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Downloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function fetchCertificates(string $hostName): array

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

Expand Down

0 comments on commit bb5b2f0

Please sign in to comment.