commit fffccf0af0340f77ab22a6658e133e4f61e83d11
parent a929485254f69d7028478b0ad232227e36dc076d
Author: MS <ms@taler.net>
Date: Wed, 5 Apr 2023 12:47:25 +0200
reverting last change
Diffstat:
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
@@ -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 {