Skip to content

Commit

Permalink
Extract the correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Sep 26, 2017
1 parent 3864e22 commit f62ed73
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 f62ed73

Please sign in to comment.