[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/02: reverting last change
From: |
gnunet |
Subject: |
[libeufin] 01/02: reverting last change |
Date: |
Wed, 05 Apr 2023 12:47:44 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit fffccf0af0340f77ab22a6658e133e4f61e83d11
Author: MS <ms@taler.net>
AuthorDate: Wed Apr 5 12:47:25 2023 +0200
reverting last change
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
index 6b6c2be2..0e2f4600 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
@@ -551,10 +551,11 @@ fun circuitApi(circuitRoute: Route) {
message = op.tan
)
} catch (e: Exception) {
- throw internalServerError(
+ logger.error(
"Sending the e-mail TAN failed for ${customer.email}."
+
" The command threw this exception:
${e.message}"
)
+ false
}
if (!isSuccessful)
throw internalServerError(
@@ -582,12 +583,9 @@ fun circuitApi(circuitRoute: Route) {
" The command threw this exception:
${e.message}"
)
}
- if (!isSuccessful) {
- logger.error("Cashout ${op.uuid} failed, deleting it.")
- transaction { op.delete() }
+ if (!isSuccessful)
throw internalServerError(
"SMS TAN command failed for ${customer.phone}.")
- }
}
SupportedTanChannels.FILE.name -> {
try {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.