Skip to content

Commit

Permalink
Merge pull request #12 from fortifi/oops
Browse files Browse the repository at this point in the history
Extract the correct error
  • Loading branch information
rgooding committed Sep 26, 2017
2 parents 3864e22 + f62ed73 commit e63e51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth/FortifiProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ protected function checkResponse(ResponseInterface $response, $data)
{
if($response->getStatusCode() != 200)
{
$msg = Arrays::value($data, ['message'], 'An unknown error occurred');
$msg = Arrays::value($data, 'message', 'An unknown error occurred');
throw new IdentityProviderException($msg, $response->getStatusCode(), (array)$data);
}
}
Expand Down

0 comments on commit e63e51d

Please sign in to comment.