Skip to content

Commit

Permalink
[BE] FIX: Intra API Error log added
Browse files Browse the repository at this point in the history
  • Loading branch information
enaenen committed Sep 25, 2023
1 parent 5aa73ca commit a547434
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a547434

Please sign in to comment.