Skip to content

Commit

Permalink
PLA-6911: Print unable to connect to reader error (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanj-tyro authored May 29, 2024
1 parent c4899b7 commit 3d1c385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SampleApp/SampleApp/ViewModels/ContentViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d1c385

Please sign in to comment.