From b0af1cd1c9a0deb3ccc0c145bf0dda7f734a8998 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 1 Nov 2021 15:59:09 +0100 Subject: [PATCH] Added an error message if FinTS message to be sent to bank could not be created --- .../kotlin/net/dankito/banking/fints/RequestExecutor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/RequestExecutor.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/RequestExecutor.kt index 2d8126b5..68924c52 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/RequestExecutor.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/RequestExecutor.kt @@ -46,7 +46,7 @@ open class RequestExecutor( open fun getAndHandleResponseForMessage(message: MessageBuilderResult, dialogContext: DialogContext, tanRequiredCallback: (TanResponse, BankResponse, callback: (BankResponse) -> Unit) -> Unit, callback: (BankResponse) -> Unit) { if (message.createdMessage == null) { - callback(BankResponse(false, messageCreationError = message)) + callback(BankResponse(false, messageCreationError = message, errorMessage = "Could not create FinTS message to be sent to bank")) // TODO: translate } else { getAndHandleResponseForMessage(message.createdMessage, dialogContext) { response ->