gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 03/10: Fix accidental import.


From: gnunet
Subject: [libeufin] 03/10: Fix accidental import.
Date: Sat, 07 Jan 2023 13:49:02 +0100

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

ms pushed a commit to branch master
in repository libeufin.

commit b45cb5dac22728a9b8db17e3745aed9ab4f304a7
Author: MS <ms@taler.net>
AuthorDate: Sat Jan 7 13:15:06 2023 +0100

    Fix accidental import.
---
 nexus/build.gradle                                          |  2 +-
 .../main/kotlin/tech/libeufin/nexus/server/NexusServer.kt   | 13 +++++--------
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/nexus/build.gradle b/nexus/build.gradle
index 75f4254c..4942ecce 100644
--- a/nexus/build.gradle
+++ b/nexus/build.gradle
@@ -49,7 +49,6 @@ dependencies {
 
     // LibEuFin util library
     implementation project(":util")
-    implementation project(":sandbox") // for testing
 
     // Logging
     implementation 'ch.qos.logback:logback-classic:1.2.5'
@@ -97,6 +96,7 @@ dependencies {
     testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
     testImplementation 'org.jetbrains.kotlin:kotlin-test:1.5.21'
     testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:1.5.21'
+    testImplementation project(":sandbox")
 }
 
 test {
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 23df07a5..7dceecc5 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -52,8 +52,6 @@ import tech.libeufin.nexus.*
 import tech.libeufin.nexus.bankaccount.*
 import tech.libeufin.nexus.ebics.*
 import tech.libeufin.nexus.iso20022.CamtBankAccountEntry
-import tech.libeufin.sandbox.SandboxErrorDetailJson
-import tech.libeufin.sandbox.SandboxErrorJson
 import tech.libeufin.util.*
 import java.net.BindException
 import java.net.URLEncoder
@@ -214,14 +212,13 @@ val nexusApp: Application.() -> Unit = {
             )
         }
         exception<BadRequestException> { call, cause ->
-            tech.libeufin.sandbox.logger.error("Exception while handling 
'${call.request.uri}', ${cause.message}")
+            logger.error("Exception while handling '${call.request.uri}', 
${cause.message}")
             call.respond(
                 HttpStatusCode.BadRequest,
-                SandboxErrorJson(
-                    error = SandboxErrorDetailJson(
-                        type = "util-error",
-                        description = cause.message ?: "Bad request but did 
not find exact cause."
-                    )
+                ErrorResponse(
+                    code = 
TalerErrorCode.TALER_EC_LIBEUFIN_NEXUS_GENERIC_ERROR.code,
+                    detail = cause.message ?: "Bad request but did not find 
exact cause.",
+                    hint = "Malformed request or unacceptable values"
                 )
             )
         }

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