gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: respond 404 on demobank not found


From: gnunet
Subject: [libeufin] branch master updated: respond 404 on demobank not found
Date: Fri, 01 Jul 2022 17:09:49 +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 d708771e respond 404 on demobank not found
d708771e is described below

commit d708771eda85b0905a420dc370bd5cfee369a4bb
Author: MS <ms@taler.net>
AuthorDate: Fri Jul 1 17:09:40 2022 +0200

    respond 404 on demobank not found
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt | 2 +-
 util/src/main/kotlin/Ebics.kt                            | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
index accbac02..8f0a2944 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
@@ -347,7 +347,7 @@ private fun ensureDemobank(name: String): 
DemobankConfigEntity {
     return transaction {
         DemobankConfigEntity.find {
             DemobankConfigsTable.name eq name
-        }.firstOrNull() ?: throw internalServerError("Demobank '$name' never 
created")
+        }.firstOrNull() ?: throw notFound("Demobank '$name' not found.  Was it 
ever created?")
     }
 }
 
diff --git a/util/src/main/kotlin/Ebics.kt b/util/src/main/kotlin/Ebics.kt
index e2df0fdb..5165e6df 100644
--- a/util/src/main/kotlin/Ebics.kt
+++ b/util/src/main/kotlin/Ebics.kt
@@ -58,7 +58,6 @@ data class EbicsProtocolError(
 data class EbicsDateRange(val start: ZonedDateTime, val end: ZonedDateTime)
 
 sealed class EbicsOrderParams
-
 data class EbicsStandardOrderParams(
     val dateRange: EbicsDateRange? = null
 ) : EbicsOrderParams()

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