Skip to content

Commit

Permalink
Throw exception instead of returning it
Browse files Browse the repository at this point in the history
  • Loading branch information
rojtjo committed Nov 9, 2021
1 parent 8e0e5b3 commit d442985
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 d442985

Please sign in to comment.