Fix PreCommit

This commit is contained in:
rrajoria
2025-05-19 12:56:00 +05:30
parent 04e7b3a316
commit a6d1a7eaa7

View File

@@ -106,11 +106,13 @@ class SpringBasedIdentityServiceFacade implements IdentityServiceFacade
{
response = client.getTokenResponse(request);
}
catch (OAuth2AuthorizationException e) {
catch (OAuth2AuthorizationException e)
{
LOGGER.debug("Failed to authorize against Authorization Server. Reason: " + e.getError() + ".");
throw new AuthorizationException("Failed to obtain access token. " + e.getError(), e);
}
catch (RuntimeException e) {
catch (RuntimeException e)
{
LOGGER.warn("Failed to authorize against Authorization Server. Reason: " + e.getMessage());
throw new AuthorizationException("Failed to obtain access token.", e);
}