Skip to content

Commit

Permalink
Adding more debug info to the PermanentRedirectException
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed May 27, 2015
1 parent b57cf1a commit 3d487b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/S3/PermanentRedirectMiddleware.php
Expand Up @@ -48,7 +48,9 @@ function (ResultInterface $result) use ($command) {
if ($status == 301) {
throw new PermanentRedirectException(
'Encountered a permanent redirect while requesting '
. $result['@effectiveUri'],
. $result->search('"@metadata".effectiveUri') . '. '
. 'Are you sure you are using the correct region for '
. 'this bucket?',
$command,
['result' => $result]
);
Expand Down

0 comments on commit 3d487b8

Please sign in to comment.