Skip to content

Commit

Permalink
Merge pull request #18 from davereid/patch-1
Browse files Browse the repository at this point in the history
Add upstream exception message to AccessTokenRequestException message
  • Loading branch information
kamermans authored Aug 17, 2022
2 parents e65e9dd + 91b2d78 commit e1f3a78
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 @@ -286,7 +286,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 e1f3a78

Please sign in to comment.