From a115cfd0d8efbbc2b71a4e19101c6d0b64b6e15b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 22 May 2014 09:44:01 +0200 Subject: [PATCH] Fix regression in github fallback behavior --- src/Composer/Util/RemoteFilesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 108c22f85..5e007b894 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -336,7 +336,7 @@ class RemoteFilesystem if (!$gitHubUtil->authorizeOAuth($this->originUrl) && (!$this->io->isInteractive() || !$gitHubUtil->authorizeOAuthInteractively($this->originUrl, $message)) ) { - throw new TransportException('Could not authenticate against '.$this->originUrl); + throw new TransportException('Could not authenticate against '.$this->originUrl, 401); } } else { // 404s are only handled for github