gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] branch master updated: Small error handling fixes


From: gnunet
Subject: [taler-taler-ios] branch master updated: Small error handling fixes
Date: Wed, 17 Apr 2024 17:36:43 +0200

This is an automated email from the git hooks/post-receive script.

ivan-avalos pushed a commit to branch master
in repository taler-ios.

The following commit(s) were added to refs/heads/master by this push:
     new 40b3397  Small error handling fixes
40b3397 is described below

commit 40b33973e228ccd3f71b7d5e7083a9856a56856f
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Wed Apr 17 09:36:38 2024 -0600

    Small error handling fixes
---
 TalerWallet1/Views/Banking/ManualWithdraw.swift     | 9 +--------
 TalerWallet1/Views/Sheets/ErrorSheet.swift          | 2 +-
 TalerWallet1/Views/Sheets/Payment/PaymentDone.swift | 4 ----
 3 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/TalerWallet1/Views/Banking/ManualWithdraw.swift 
b/TalerWallet1/Views/Banking/ManualWithdraw.swift
index e8a0d13..c902802 100644
--- a/TalerWallet1/Views/Banking/ManualWithdraw.swift
+++ b/TalerWallet1/Views/Banking/ManualWithdraw.swift
@@ -116,14 +116,7 @@ struct ManualWithdraw: View {
             if let exchangeBaseUrl = scopeInfo?.url {
                 symLog.log("getExchangeByUrl(\(exchangeBaseUrl))")
                 if exchange == nil || exchange?.tosStatus != .accepted {
-                    do {
-                        exchange = try await model.getExchangeByUrl(url: 
exchangeBaseUrl)
-                    } catch {
-                        // TODO: Error "Can't get Exchange / Payment Service 
Provider Info"
-                        symLog.log(error.localizedDescription)
-                        model.showError(.error(error))
-                        controller.playSound(0)
-                    }
+                    exchange = try? await model.getExchangeByUrl(url: 
exchangeBaseUrl)
                 }
                 if !amountToTransfer.isZero {
                     do {
diff --git a/TalerWallet1/Views/Sheets/ErrorSheet.swift 
b/TalerWallet1/Views/Sheets/ErrorSheet.swift
index 7b6fd69..2953d2d 100644
--- a/TalerWallet1/Views/Sheets/ErrorSheet.swift
+++ b/TalerWallet1/Views/Sheets/ErrorSheet.swift
@@ -40,7 +40,7 @@ struct ErrorSheet: View {
             case .walletCoreError(let error):
                 if let json = error?.toJSON(), devMode {
                     self.init(title: walletCoreError, message: json, copyable: 
true, onDismiss: onDismiss)
-                } else if let hint = error?.hint {
+                } else if let hint = error?.errorResponse?.hint ?? error?.hint 
{
                     self.init(title: walletCoreError, message: hint, copyable: 
false, onDismiss: onDismiss)
                 } else if let message = error?.message {
                     self.init(title: walletCoreError, message: message, 
copyable: false, onDismiss: onDismiss)
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentDone.swift 
b/TalerWallet1/Views/Sheets/Payment/PaymentDone.swift
index 8ba4e78..f52cfc5 100644
--- a/TalerWallet1/Views/Sheets/Payment/PaymentDone.swift
+++ b/TalerWallet1/Views/Sheets/Payment/PaymentDone.swift
@@ -50,10 +50,6 @@ struct PaymentDone: View {
                             //                          
symLog.log(confirmPayResult as Any)
                             if confirmPayResult.type == "done" {
                                 paymentDone = true
-                            } else {
-                                controller.playSound(0)
-                                // TODO: show error
-                                dismissTop()
                             }
                         }
                     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]