소스 검색

Show warning when we retry a TLS connection for downloads

Pádraic Brady 11 년 전
부모
커밋
2972ec3d86
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 0
src/Composer/Util/RemoteFilesystem.php

@@ -232,6 +232,7 @@ class RemoteFilesystem
             && preg_match("|Peer certificate CN=`(.*)' did not match|i", $errorMessage, $matches)) {
                 $this->retryTls = false;
                 $expectedCommonName = $matches[1];
+                $this->io->write("    <warning>Retrying download from ".$originUrl." with SSL Cert Common Name (CN): ".$expectedCommonName."</warning>");
                 return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress, $expectedCommonName);
             }
         }