Skip to content

Commit

Permalink
Merge pull request RiskioFr#23 from rojtjo/master
Browse files Browse the repository at this point in the history
Throw exception instead of returning it
  • Loading branch information
neeckeloo authored Nov 10, 2021
2 parents 8e0e5b3 + d442985 commit 501238d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getDefaultScopes()
protected function checkResponse(ResponseInterface $response, $data)
{
if ($response->getStatusCode() >= 400) {
return Auth0IdentityProviderException::fromResponse(
throw Auth0IdentityProviderException::fromResponse(
$response,
$data['error'] ?: $response->getReasonPhrase()
);
Expand Down

0 comments on commit 501238d

Please sign in to comment.