gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-android] branch master updated: [pos] Fix merchant-lib test


From: gnunet
Subject: [taler-taler-android] branch master updated: [pos] Fix merchant-lib test case
Date: Wed, 18 Jan 2023 17:07:35 +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.

The following commit(s) were added to refs/heads/master by this push:
     new f426cb3  [pos] Fix merchant-lib test case
f426cb3 is described below

commit f426cb3760d54002a57725df31846d933ce1f35e
Author: Torsten Grote <t@grobox.de>
AuthorDate: Wed Jan 18 13:07:28 2023 -0300

    [pos] Fix merchant-lib test case
---
 merchant-lib/src/main/java/net/taler/merchantlib/Response.kt | 7 ++-----
 1 file changed, 2 insertions(+), 5 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 a5511f2..55de077 100644
--- a/merchant-lib/src/main/java/net/taler/merchantlib/Response.kt
+++ b/merchant-lib/src/main/java/net/taler/merchantlib/Response.kt
@@ -17,9 +17,7 @@
 package net.taler.merchantlib
 
 import io.ktor.client.call.body
-import io.ktor.client.plugins.ClientRequestException
 import io.ktor.client.plugins.ResponseException
-import io.ktor.client.plugins.ServerResponseException
 import kotlinx.serialization.Serializable
 
 class Response<out T> private constructor(
@@ -64,8 +62,7 @@ class Response<out T> private constructor(
     }
 
     private suspend fun getFailureString(failure: Failure): String = when 
(failure.exception) {
-        is ClientRequestException -> getExceptionString(failure.exception)
-        is ServerResponseException -> getExceptionString(failure.exception)
+        is ResponseException -> getExceptionString(failure.exception)
         else -> failure.exception.toString()
     }
 
@@ -85,6 +82,6 @@ class Response<out T> private constructor(
     private class Error(
         val code: Int?,
         val hint: String?,
-        val detail: String?,
+        val detail: String? = null,
     )
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]