commit 0540fc52a15ef0a62d3f58056eb8436867e6c238
parent d55c19fb3983df64675ada5c41b72daca9758d01
Author: Iván Ávalos <avalos@disroot.org>
Date: Thu, 15 Aug 2024 12:06:40 +0200
[wallet] send wallet-core all non-200 responses
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/backend/NetworkInterface.kt b/wallet/src/main/java/net/taler/wallet/backend/NetworkInterface.kt
@@ -76,7 +76,6 @@ class NetworkInterface: Networking.RequestHandler {
}
}
} catch (e: ResponseException) {
- errorMsg = e.message
e.response // send non-200 responses to wallet-core anyway
} catch (e: IOException) {
Log.d(TAG, "Exception handling HTTP response", e)
@@ -92,10 +91,7 @@ class NetworkInterface: Networking.RequestHandler {
}
// HTTP response status code or 0 on error.
- val status = if (
- resp?.status?.value != null &&
- resp.status.value in 200 until 300
- ) resp.status.value else 0
+ val status = if (resp?.status?.value != null) resp.status.value else 0
Log.d(TAG, "Sending response to wallet-core")
sendResponse(