diff --git a/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java b/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java index fc89d5bd6..99456454a 100644 --- a/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java +++ b/backend/src/main/java/org/ftclub/cabinet/auth/service/FtApiManager.java @@ -46,10 +46,12 @@ public void issueAccessToken() { return objectMapper.readTree(response) .get(ftApiProperties.getAccessTokenName()).asText(); } catch (Exception e) { - throw new RuntimeException(); + log.error("mapping error {}",e.getMessage()); + throw new ServiceException(ExceptionStatus.EXTERNAL_API_EXCEPTION); } }) .onErrorResume(e -> { + log.error("ErrorResumed {}",e.getMessage()); throw new ServiceException(ExceptionStatus.OAUTH_BAD_GATEWAY); }) .block();