1
0
Fork 0

Update code to work with #2766

pull/2760/merge
Jordi Boggiano 2014-02-26 17:19:54 +01:00
parent 9db2a537e5
commit 1851c29dd3
1 changed files with 5 additions and 5 deletions

View File

@ -262,17 +262,17 @@ class RemoteFilesystem
case STREAM_NOTIFY_FAILURE:
case STREAM_NOTIFY_AUTH_REQUIRED:
if (401 === $messageCode) {
// Bail if the caller is going to handle authentication failures itself.
if (!$this->retryAuthFailure) {
break;
}
if (!$this->io->isInteractive()) {
$message = "The '" . $this->fileUrl . "' URL required authentication.\nYou must be using the interactive console";
throw new TransportException($message, 401);
}
// Bail if the caller is going to handle authentication failures itself.
if (!$this->retryAuthFailure) {
throw new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.trim($message).')', 401);
}
$this->promptAuthAndRetry();
break;
}