Skip to content

Commit 7879d69

Browse files
Update Wrike.php
1 parent 05cc8fa commit 7879d69

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Provider/Wrike.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ protected function getDefaultScopes()
6868
protected function checkResponse(ResponseInterface $response, $data)
6969
{
7070
if (isset($data['error'])) {
71-
throw new IdentityProviderException($data['error_description'], $response->getStatusCode(), $response);
71+
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);
7277
}
7378
}
7479

0 commit comments

Comments
 (0)