File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
finch-java-core/src/main/kotlin/com/tryfinch/api/client Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class FinchClientAsyncImpl(private val clientOptions: ClientOptions) : FinchClie
151151 )
152152 .build()
153153 return clientOptions.httpClient.executeAsync(request).thenApply {
154- getAccessTokenHandler.handle(it ).accessToken
154+ getAccessTokenHandler.handle(errorHandler.handle(it) ).accessToken
155155 }
156156 }
157157
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ class FinchClientImpl(private val clientOptions: ClientOptions) : FinchClient {
140140 )
141141 .build()
142142 return clientOptions.httpClient.execute(request).let {
143- getAccessTokenHandler.handle(it ).accessToken
143+ getAccessTokenHandler.handle(errorHandler.handle(it) ).accessToken
144144 }
145145 }
146146
You can’t perform that action at this time.
0 commit comments