Skip to content

Commit

Permalink
I hate
Browse files Browse the repository at this point in the history
  • Loading branch information
AsafMah committed Nov 12, 2024
1 parent 2984872 commit 3650f99
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public class CallbackTokenProvider extends TokenProviderBase {
@Override
protected Mono<String> acquireAccessTokenImpl() {
return Mono.fromCallable(() -> tokenProvider.apply(httpClient))
.onErrorMap(e -> new DataClientException(clusterUrl, ExceptionsUtils.getMessageEx(e), e));
// TODO - is this a better way?
.onErrorMap(e -> new DataClientException(clusterUrl, ExceptionsUtils.getMessageEx((Exception) e), (Exception) e));
}

@Override
Expand Down

0 comments on commit 3650f99

Please sign in to comment.