problem: no info in log about invalid url

This commit is contained in:
Igor Artamonov
2020-10-14 21:26:40 -04:00
parent e2d70e6721
commit 08acf92efa

View File

@@ -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()
}