Skip to content

Commit

Permalink
Display connecting port in error message (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Horn <[email protected]>
  • Loading branch information
JoeHorn and Joe Horn authored Aug 10, 2023
1 parent 60599a4 commit 4583930
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 @@ -192,8 +192,8 @@ protected function fetchCertificates(string $hostName): array

if (! $client) {
$clientErrorMessage = ($this->usingIpAddress)
? "Could not connect to `{$connectTo}` or it does not have a certificate matching `{$hostName}`."
: "Could not connect to `{$connectTo}`.";
? "Could not connect to `{$connectTo}:{$this->port}` or it does not have a certificate matching `{$hostName}`."
: "Could not connect to `{$connectTo}:{$this->port}`.";

throw CouldNotDownloadCertificate::unknownError($hostName, $clientErrorMessage);
}
Expand Down

0 comments on commit 4583930

Please sign in to comment.