commit d89d45bd527e441c68706392cac5faa0d9ffde52 parent 150e94958dddd777b05322a30a838ba2df65cb33 Author: Marc Stibane <marc@taler.net> Date: Wed, 19 Aug 2026 07:33:52 +0200 AI: error handling Diffstat:
| M | TalerWallet1/Backend/WalletCore.swift | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -547,7 +547,9 @@ extension WalletCore { logger.error("\(context.codingPath)") } catch let error { logger.error("\(error.localizedDescription)") - } catch { // TODO: ? + // Anything that is not a DecodingError means we could not classify the + // message at all (e.g. tunnelHttp, or an unknown "type"). A second + // `catch` after this one would be unreachable, so notify from here. delegate?.walletBackendReceivedUnknownMessage(self, message: message) } }