From 4583930a1bf3d411b561bb3c7dbd2c6b4fa5350c Mon Sep 17 00:00:00 2001 From: Joe Horn Date: Thu, 10 Aug 2023 15:49:12 +0800 Subject: [PATCH] Display connecting port in error message (#181) Co-authored-by: Joe Horn --- src/Downloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Downloader.php b/src/Downloader.php index 444932c..b6d3791 100644 --- a/src/Downloader.php +++ b/src/Downloader.php @@ -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); }