From a3a2f33880c799a29815a8c9dafecaae5d4d7297 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 6 Jun 2023 13:34:27 +0400 Subject: [PATCH] Do not unwind rpc exception --- .../io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcError.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcError.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcError.kt index b5ed39bd..0c5bb6bd 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcError.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcError.kt @@ -31,7 +31,7 @@ class JsonRpcError(val code: Int, val message: String, val details: Any?) { } fun asException(id: JsonRpcResponse.Id?): JsonRpcException { - return JsonRpcException(id ?: JsonRpcResponse.NumberId(-1), this) + return JsonRpcException(id ?: JsonRpcResponse.NumberId(-1), this, false) } override fun equals(other: Any?): Boolean {