Skip to content

Commit e1f3a78

Browse files
authored
Merge pull request #18 from davereid/patch-1
Add upstream exception message to AccessTokenRequestException message
2 parents e65e9dd + 91b2d78 commit e1f3a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OAuth2Handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected function requestNewAccessToken()
286286

287287
$this->rawToken = $this->tokenFactory($rawData);
288288
} catch (BadResponseException $e) {
289-
throw new Exception\AccessTokenRequestException('Unable to request a new access token', $e);
289+
throw new Exception\AccessTokenRequestException('Unable to request a new access token: ' . $e->getMessage(), $e);
290290
}
291291
}
292292
}

0 commit comments

Comments
 (0)