We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05cc8fa commit 7879d69Copy full SHA for 7879d69
src/Provider/Wrike.php
@@ -68,7 +68,12 @@ protected function getDefaultScopes()
68
protected function checkResponse(ResponseInterface $response, $data)
69
{
70
if (isset($data['error'])) {
71
- throw new IdentityProviderException($data['error_description'], $response->getStatusCode(), $response);
+ if (isset($data['error_description'])) {
72
+ $message = $data['error_description'];
73
+ } else {
74
+ $message = $data['errorDescription'];
75
+ }
76
+ throw new IdentityProviderException($message, $response->getStatusCode(), $response);
77
}
78
79
0 commit comments