[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.
- [libeufin] branch master updated (5ba09a22 -> 7dfef458), gnunet, 2023/01/07
- [libeufin] 02/10: comment, gnunet, 2023/01/07
- [libeufin] 04/10: Nexus DB helper to get bank accounts., gnunet, 2023/01/07
- [libeufin] 10/10: Test debit detection when serving EBICS., gnunet, 2023/01/07
- [libeufin] 09/10: fix loglevel, gnunet, 2023/01/07
- [libeufin] 08/10: Debit check at server side EBICS., gnunet, 2023/01/07
- [libeufin] 05/10: Nexus HTTP status codes review., gnunet, 2023/01/07
- [libeufin] 01/10: readme, gnunet, 2023/01/07
- [libeufin] 03/10: Fix accidental import.,
gnunet <=
- [libeufin] 07/10: Introduce debit check helper., gnunet, 2023/01/07
- [libeufin] 06/10: Nexus HTTP status codes review., gnunet, 2023/01/07