problem: no info in log about invalid url
This commit is contained in:
@@ -106,7 +106,7 @@ class EsploraClient(
|
|||||||
return response
|
return response
|
||||||
.response { header, bytes ->
|
.response { header, bytes ->
|
||||||
if (header.status().code() != 200) {
|
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 {
|
} else {
|
||||||
bytes.aggregate().asByteArray()
|
bytes.aggregate().asByteArray()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user