[Errors] Include parser error body when reporting HTTP errors.

This commit is contained in:
Kuba Szczodrzyński 2020-01-19 20:34:10 +01:00
parent d097fcc973
commit 512baaa43f

View File

@ -93,7 +93,7 @@ class ApiError(val tag: String, var errorCode: Int) {
stackTrace = throwable?.stackTraceString,
request = requestString,
response = responseString,
apiResponse = apiResponse,
apiResponse = apiResponse ?: response?.parserErrorBody,
isCritical = isCritical
)
}