Added an error message if FinTS message to be sent to bank could not be created

This commit is contained in:
dankito 2021-11-01 15:59:09 +01:00
parent dee1fd7211
commit b0af1cd1c9
1 changed files with 1 additions and 1 deletions

View File

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