From b8da471f9a643d4feea9f68ff5f585ccde86dc1d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 13 Dec 2012 15:40:47 +0100 Subject: [PATCH] Clarify transport exception for 403s, fixes #1416 --- src/Composer/Util/RemoteFilesystem.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index aa1961c5a..882ff4bce 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -229,6 +229,8 @@ class RemoteFilesystem case STREAM_NOTIFY_AUTH_RESULT: if (403 === $messageCode) { + $message = "The '" . $this->fileUrl . "' URL could not be accessed: " . $message; + throw new TransportException($message, 403); } break;