We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb918ba + 4655e1b commit 78e7d72Copy full SHA for 78e7d72
core/remote/src/main/kotlin/team/noweekend/core/remote/base/BaseErrorPaser.kt
@@ -28,9 +28,8 @@ object NWKApiErrorParser {
28
val responseString = response.bodyAsText()
29
val root = json.parseToJsonElement(responseString).jsonObject
30
31
- if (root["error"]?.jsonNull != null) return null
+ val errorElement = root["error"]
32
33
- val errorElement = root["errorResponse"]
34
errorElement?.let {
35
json.decodeFromJsonElement<NWKErrorResponse>(it)
36
}
0 commit comments