gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: exception management


From: gnunet
Subject: [libeufin] branch master updated: exception management
Date: Sat, 18 Sep 2021 12:38:33 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new db5931e  exception management
db5931e is described below

commit db5931eebdab2b3d113236eb989de12a4d20de36
Author: ms <ms@taler.net>
AuthorDate: Sat Sep 18 12:38:29 2021 +0200

    exception management
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 2 +-
 util/src/main/kotlin/HTTP.kt                       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index 25d29ec..840ef52 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -52,7 +52,7 @@ data class TalerTransferRequest(
     val amount: String,
     val exchange_base_url: String,
     val wtid: String,
-    val credit_account: String
+    val credit_account: String // payto://-format
 )
 
 data class TalerTransferResponse(
diff --git a/util/src/main/kotlin/HTTP.kt b/util/src/main/kotlin/HTTP.kt
index 69ed7a7..491a6e9 100644
--- a/util/src/main/kotlin/HTTP.kt
+++ b/util/src/main/kotlin/HTTP.kt
@@ -32,7 +32,7 @@ fun extractUserAndPassword(authorizationHeader: String): 
Pair<String, String> {
         val split = authorizationHeader.split(" ")
         val plainUserAndPass = String(base64ToBytes(split[1]), Charsets.UTF_8)
         plainUserAndPass.split(":")
-    } catch (e: java.lang.Exception) {
+    } catch (e: Exception) {
         throw UtilError(
             HttpStatusCode.BadRequest,
             "invalid Authorization:-header received",

-- 
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]