From e0ee8fa844505cb36e89a14121d44943eb0ac478 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 6 Jun 2023 19:41:23 +0400 Subject: [PATCH] do not unwind exception in http client --- .../emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt index d40f2516..13d0808e 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt @@ -131,7 +131,7 @@ class JsonRpcHttpClient( return Function { resp -> resp.flatMap { if (it.hasError()) { - Mono.error(JsonRpcException(it.id, it.error!!)) + Mono.error(JsonRpcException(it.id, it.error!!, false)) } else { Mono.just(it) }