Browse Source

Clarify transport exception for 403s, fixes #1416

Jordi Boggiano 12 years ago
parent
commit
b8da471f9a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Composer/Util/RemoteFilesystem.php

+ 2 - 0
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;