[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-android] 01/02: [pos] include error detail in error string
From: |
gnunet |
Subject: |
[taler-taler-android] 01/02: [pos] include error detail in error string |
Date: |
Tue, 17 Jan 2023 18:57:44 +0100 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository taler-android.
commit 3383aa3e7cb39a53203a8d0ad372097060e91d69
Author: Torsten Grote <t@grobox.de>
AuthorDate: Tue Jan 17 14:45:11 2023 -0300
[pos] include error detail in error string
---
merchant-lib/src/main/java/net/taler/merchantlib/Response.kt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/merchant-lib/src/main/java/net/taler/merchantlib/Response.kt
b/merchant-lib/src/main/java/net/taler/merchantlib/Response.kt
index b7ba1ac..a5511f2 100644
--- a/merchant-lib/src/main/java/net/taler/merchantlib/Response.kt
+++ b/merchant-lib/src/main/java/net/taler/merchantlib/Response.kt
@@ -73,7 +73,7 @@ class Response<out T> private constructor(
val response = e.response
return try {
val error: Error = response.body()
- "Error ${error.code}: ${error.hint}"
+ "Error ${error.code} (${response.status.value}): ${error.hint}
${error.detail}"
} catch (ex: Exception) {
"Status code: ${response.status.value}"
}
@@ -84,6 +84,7 @@ class Response<out T> private constructor(
@Serializable
private class Error(
val code: Int?,
- val hint: String?
+ val hint: String?,
+ val detail: String?,
)
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.