taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit a81bba71c3175e34fc8f6ddd420d87af1e68606d
parent 9c3327f3698ceced471fce211ba541ea244d2401
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 15 Mar 2025 15:10:14 +0100

GeneralError

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 2+-
MTalerWallet1/Controllers/PublicConstants.swift | 2+-
MTalerWallet1/Views/Main/MainView.swift | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -379,7 +379,7 @@ extension WalletCore { } } catch let error { logger.error("Error \(error) parsing notification: \(message)") - postNotification(.Error, userInfo: [NOTIFICATIONERROR: error]) + postNotification(.GeneralError, userInfo: [NOTIFICATIONERROR: error]) // TODO: if DevMode then should log into file for user } } diff --git a/TalerWallet1/Controllers/PublicConstants.swift b/TalerWallet1/Controllers/PublicConstants.swift @@ -159,7 +159,7 @@ extension Notification.Name { static let TaskObservabilityEvent = Notification.Name("task-observability-event") static let RequestObservabilityEvent = Notification.Name("request-observability-event") - static let Error = Notification.Name("error") + static let GeneralError = Notification.Name("error") static let TransactionError = Notification.Name("txError") } diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -450,7 +450,7 @@ extension MainView { .onNotification(.TransactionError) { notification in shouldReloadPending += 1 } - .onNotification(.Error) { notification in + .onNotification(.GeneralError) { notification in if let error = notification.userInfo?[NOTIFICATIONERROR] as? Error { model.setError(error) controller.playSound(0)