diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 55b0c84bb..48c2bb81a 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -236,6 +236,10 @@ class RemoteFilesystem break; } + if ($notificationCode === STREAM_NOTIFY_AUTH_REQUIRED) { + break; + } + throw new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.trim($message).')', $messageCode); case STREAM_NOTIFY_AUTH_RESULT: