Log details of bad response code error
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user