commit 540f62f8505ec2365e81e944d5f267d925b03247
parent f87b3169d407635aa9a6ad4f1543742ed1b97410
Author: Marc Stibane <marc@taler.net>
Date: Thu, 5 Nov 2026 20:42:26 +0100
AI: WALLET_PEER_PULL_DEBIT_PURSE_GONE
Diffstat:
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Views/Main/ErrorView.swift b/TalerWallet1/Views/Main/ErrorView.swift
@@ -106,18 +106,21 @@ struct ErrorView: View {
/// wallet-core errors that are expected outcomes, rather than faults, keyed by `TalerErrorCode`.
static func titleForExpected(code: Int) -> String? {
switch code {
+ case 7000, // WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE
+ 7017: // WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE
+ String(localized: "Incompatible version",
+ comment: "error title: the server speaks a protocol this app does not")
+ case 7041: // WALLET_PEER_PULL_DEBIT_PURSE_GONE
+ String(localized: "Invoice expired",
+ comment: "error title: the payer waited too long")
case 7054: // WALLET_KYC_LIMIT_EXCEEDED
String(localized: "Limit exceeded",
- comment: "error title: the payment service refused the amount")
+ comment: "error title: the payment service refused the amount")
case 7055: // WALLET_NO_SUITABLE_EXCHANGE
String(localized: "No suitable payment service",
comment: "error title: no exchange can serve this request")
case 7064: // WALLET_CONTRACT_TERMS_UNSUPPORTED
String(localized: "Transaction Error")
- case 7000, // WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE
- 7017: // WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE
- String(localized: "Incompatible version",
- comment: "error title: the server speaks a protocol this app does not")
default: nil
}
}