commit 907adfcb4df77a4d5bd7d649b3694a6e11089918
parent 99ad38fb6c76bedb7b50b6da4062af06787ec146
Author: Marc Stibane <marc@taler.net>
Date: Sat, 21 Nov 2026 21:48:15 +0100
comments
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/TalerWallet1/Model/Model+Withdraw.swift b/TalerWallet1/Model/Model+Withdraw.swift
@@ -173,8 +173,8 @@ fileprivate struct GetWithdrawalDetailsForAmount: WalletBackendFormattedRequest
}
// MARK: -
enum ExchangeTosStatus: String, Codable {
- case missingTos = "missing-tos"
- case pending
+ case missingTos = "missing-tos" // the exchange does not have ToS
+ case pending // == unknown - need to wait until it settles
case proposed
case accepted
}
diff --git a/TalerWallet1/Views/Main/ErrorView.swift b/TalerWallet1/Views/Main/ErrorView.swift
@@ -125,11 +125,13 @@ struct ErrorView: View {
/// wallet-core errors that are expected outcomes, rather than faults, keyed by `TalerErrorCode` from taler-error-codes.ts.
static func titleForExpected(code: Int) -> String? {
switch code {
+ // 7001 WALLET_UNEXPECTED_EXCEPTION, and 7048 WALLET_CORE_API_BAD_REQUEST
+ // both stay Internal core errors - to be found while debugging, not in production
case 7000, // WALLET_EXCHANGE_PROTOCOL_VERSION_INCOMPATIBLE
7017, // WALLET_BANK_INTEGRATION_PROTOCOL_VERSION_INCOMPATIBLE
7047: // WALLET_TRANSACTION_PROTOCOL_VIOLATION
String(localized: "Incompatible protocol version",
- comment: "error title: 7000,7017: the server speaks a protocol this app does not")
+ comment: "error title: 7000,7017, 7047: the server speaks a protocol this app does not")
// 7002, 7003, 7005, 7013 and 7032 are mapped to INTERNET ERROR
// case 7002: // WALLET_RECEIVED_MALFORMED_RESPONSE
// String(localized: "Bad response from server",
@@ -146,7 +148,7 @@ struct ErrorView: View {
case 7026, // WALLET_DEPOSIT_GROUP_INSUFFICIENT_BALANCE
7027: // WALLET_PEER_PUSH_PAYMENT_INSUFFICIENT_BALANCE
String(localized: "Insufficient balance",
- comment: "error title: 7026: not enough funds for transaction")
+ comment: "error title: 7026, 7027: not enough funds for transaction")
// case 7032: // WALLET_EXCHANGE_UNAVAILABLE
// String(localized: "",
// comment: "error title: 7032: ")