From 293e8aa84933ec5bdeb9c4f57500545c67e99235 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 16 Oct 2020 19:04:52 +0200 Subject: [PATCH] Also filtering out "9010::Initialisierung fehlgeschlagen, Auftrag nicht bearbeitet." feedbacks, are of now use for user --- .../kotlin/net/dankito/banking/fints/response/BankResponse.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/BankResponse.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/BankResponse.kt index 090877be..8788fda2 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/BankResponse.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/BankResponse.kt @@ -103,7 +103,8 @@ open class BankResponse( protected open fun mapToMessageToShowToUser(feedback: Feedback): String? { if (feedback.isError || feedback.isPinLocked) { - if (feedback.responseCode != 9800) { // filter out 'Dialogabbruch' feedbacks, is of no value to user + if (feedback.responseCode != 9800 // filter out 'Dialogabbruch' feedbacks, is of no value to user + && (feedback.responseCode == 9010 && feedback.message.contains("Initialisierung fehlgeschlagen")) == false) { return "${feedback.responseCode}: ${feedback.message}" } }