mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-09 22:35:56 +05:45
Follow up to #1776. That PR added a lot of tests to cover error logging, and #1778 introduced a small error that wasn't covered: if attribute errors are empty, the `localizedDescription` could end up becoming `"[:]"`. This fixes that. ## Examples: This was the underlying error returned (the output of `error.localizedDescription`): #### Before: > [:] #### After: > There was a credentials issue. Check the underlying error for more details. And this is what was logged (notice that I also fixed `ErrorCode.invalidCredentialsError` to not log as an "Apple Error"): #### Before: > 🍎‼️There was a credentials issue. Check the underlying error for more details. [:] #### After: > 😿‼️ There was a credentials issue. Check the underlying error for more details.