Skip to content

Commit 3e89dae

Browse files
authored
Fix crash on iOS 26 when printing ErrorCode initialized from NSError (#16000)
2 parents dc9cf5c + 1a11ed7 commit 3e89dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Sources/Hardware/CardReader/StripeCardReader/StripeCardReaderService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ private extension StripeCardReaderService {
11091109
DDLogError("💳 Card Reader Config Error: \(error)")
11101110
default:
11111111
let errorCode = ErrorCode(_nsError: error as NSError)
1112-
DDLogError("💳 Stripe Error Code: \(errorCode.code)")
1112+
DDLogError("💳 Stripe Error Code: \(errorCode.errorCode)")
11131113
}
11141114
return UnderlyingError(with: error)
11151115
}

0 commit comments

Comments
 (0)