From 08acf92efa979e7289578b1ca6c69082dd089627 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 14 Oct 2020 21:26:40 -0400 Subject: [PATCH] problem: no info in log about invalid url --- .../io/emeraldpay/dshackle/upstream/bitcoin/EsploraClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/bitcoin/EsploraClient.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/bitcoin/EsploraClient.kt index 3ecf533f..ef0c6df0 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/bitcoin/EsploraClient.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/bitcoin/EsploraClient.kt @@ -106,7 +106,7 @@ class EsploraClient( return response .response { header, bytes -> if (header.status().code() != 200) { - Mono.error(EsploraException("HTTP Code: ${header.status().code()} for ${header.fullPath()}")) + Mono.error(EsploraException("HTTP Code: ${header.status().code()} for ${url.scheme}://${url.host}${header.fullPath()}")) } else { bytes.aggregate().asByteArray() }