From aa0931dddcc3e6332ee2e989525597df6e2fba05 Mon Sep 17 00:00:00 2001 From: carbotaniuman Date: Mon, 21 Feb 2022 17:16:08 +0000 Subject: [PATCH] Get the body of the error --- src/main/kotlin/mdnet/BackendApi.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/mdnet/BackendApi.kt b/src/main/kotlin/mdnet/BackendApi.kt index 55c6660..d6e4de3 100644 --- a/src/main/kotlin/mdnet/BackendApi.kt +++ b/src/main/kotlin/mdnet/BackendApi.kt @@ -124,7 +124,7 @@ class BackendApi(private val settings: ClientSettings) { try { PING_FAILURE_LENS(response) } catch (e: LensFailure) { - PingFailure(response.status.code, response.status.description) + PingFailure(response.status.code, response.bodyString()) } } }