Skip to content

Commit

Permalink
Merge pull request #218 from dolfelt/master
Browse files Browse the repository at this point in the history
Get reliable body response on error.
  • Loading branch information
ramsey committed Feb 10, 2015
2 parents 2a72847 + c88b91d commit 07b4641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Provider/AbstractProvider.php
Expand Up @@ -196,8 +196,7 @@ public function getAccessToken($grant = 'authorization_code', $params = [])
}
} catch (BadResponseException $e) {
// @codeCoverageIgnoreStart
$raw_response = explode("\n", $e->getResponse());
$response = end($raw_response);
$response = $e->getResponse()->getBody();
// @codeCoverageIgnoreEnd
}

Expand Down

0 comments on commit 07b4641

Please sign in to comment.