Added an error message if FinTS message to be sent to bank could not be created
This commit is contained in:
parent
dee1fd7211
commit
b0af1cd1c9
|
@ -46,7 +46,7 @@ open class RequestExecutor(
|
||||||
open fun getAndHandleResponseForMessage(message: MessageBuilderResult, dialogContext: DialogContext,
|
open fun getAndHandleResponseForMessage(message: MessageBuilderResult, dialogContext: DialogContext,
|
||||||
tanRequiredCallback: (TanResponse, BankResponse, callback: (BankResponse) -> Unit) -> Unit, callback: (BankResponse) -> Unit) {
|
tanRequiredCallback: (TanResponse, BankResponse, callback: (BankResponse) -> Unit) -> Unit, callback: (BankResponse) -> Unit) {
|
||||||
if (message.createdMessage == null) {
|
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 {
|
else {
|
||||||
getAndHandleResponseForMessage(message.createdMessage, dialogContext) { response ->
|
getAndHandleResponseForMessage(message.createdMessage, dialogContext) { response ->
|
||||||
|
|
Loading…
Reference in New Issue