From 3d1c385181b503e0f1029541a940aaf4188718a5 Mon Sep 17 00:00:00 2001 From: sanj-tyro <87962819+sanj-tyro@users.noreply.github.com> Date: Wed, 29 May 2024 13:30:16 +1000 Subject: [PATCH] PLA-6911: Print unable to connect to reader error (#30) --- SampleApp/SampleApp/ViewModels/ContentViewModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SampleApp/SampleApp/ViewModels/ContentViewModel.swift b/SampleApp/SampleApp/ViewModels/ContentViewModel.swift index 0cf3ed4..fbd8121 100644 --- a/SampleApp/SampleApp/ViewModels/ContentViewModel.swift +++ b/SampleApp/SampleApp/ViewModels/ContentViewModel.swift @@ -112,9 +112,9 @@ class ContentViewModel: ObservableObject { await MainActor.run { self.state = .error("transactionError: \(errorMessage)") } - } catch TapToPaySDKError.unableToConnectReader { + } catch TapToPaySDKError.unableToConnectReader(let errorMessage) { await MainActor.run { - self.state = .error("unableToConnectReader") + self.state = .error("unableToConnectReader: \(errorMessage)") } } catch TapToPaySDKError.invalidParameter(let errorMessage) { await MainActor.run {