From 69375602e3aab1cc839a8ac71f973ab9c1aad467 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 30 Sep 2020 02:25:19 +0200 Subject: [PATCH] Filtering out 'Dialogabbruch' feedbacks --- .../kotlin/net/dankito/banking/fints/response/BankResponse.kt | 4 +++- 1 file changed, 3 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 0b979168..0f6263a4 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 @@ -76,7 +76,9 @@ open class BankResponse( protected open fun mapToMessageToShowToUser(feedback: Feedback): String? { if (feedback.isError) { - return "${feedback.responseCode}: ${feedback.message}" + if (feedback.responseCode != 9800) { // filter out 'Dialogabbruch' feedbacks, is of no value to user + return "${feedback.responseCode}: ${feedback.message}" + } } return null