Files
purchases-ios/Sources/Purchasing/StoreKit2
Chris Vasselli 80f76d7a13 ProductsFetcherSK2: add underlying error to description
### Motivation
I am seeing errors in my logs that are not very helpful:
`2023-02-14 04:20:35.356 Nihongo[96412:1082124] [Purchases] - DEBUG: ℹ️
Store products request failed! Error: The operation couldn’t be
completed. (RevenueCat.ProductsFetcherSK2.Error error 0.)`

It looks like there is an error being thrown by
`StoreKit.Product.products(for: identifiers)`, but it is wrapped in
`productsRequestError` and so no information from the actual underlying
error is being printed to the logs.

### Description
I tried to follow the pattern I saw in other parts of the framework
(specifically, `PurchasesDiagnostics.swift`) to update the localized
description of the error to print the localized description of the
underlying error.

I don't think there's any unit testing needed for this change, since it
should just update the debug logging, but let me know if you disagree.
2023-02-21 14:51:26 -08:00
..