Skip to content

Commit

Permalink
Add upstream exception message to AccessTokenRequestException message
Browse files Browse the repository at this point in the history
  • Loading branch information
davereid authored Sep 27, 2019
1 parent e6ded1e commit 91b2d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ protected function requestNewAccessToken()

$this->rawToken = $this->tokenFactory($rawData);
} catch (BadResponseException $e) {
throw new Exception\AccessTokenRequestException('Unable to request a new access token', $e);
throw new Exception\AccessTokenRequestException('Unable to request a new access token: ' . $e->getMessage(), $e);
}
}
}

0 comments on commit 91b2d78

Please sign in to comment.