Log details of bad response code error

This commit is contained in:
FooIbar authored and tarsin committed 2023-07-10 06:43:44 +08:00
1 parent dac28b9b6a
commit 200882e13c
1 file changed
+1
@@ -102,6 +102,7 @@ private fun rethrowExactly(code: Int, headers: Headers, body: String, e: Throwab
// Check bad response code
if (code >= 400) {
Log.d(TAG, "Code: $code\nHeaders: $headers\nBody: $body")
throw StatusCodeException(code)
}