Skip to content

OfferingsManager: ensure underlying OfferingsManager.Error.configurationError is logged#2266

Merged
NachoSoto merged 1 commit into
mainfrom
offerings-manager-error
Feb 8, 2023
Merged

OfferingsManager: ensure underlying OfferingsManager.Error.configurationError is logged#2266
NachoSoto merged 1 commit into
mainfrom
offerings-manager-error

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

Changes this:

ERROR: 🍎‼️ Error fetching offerings - The operation couldn't be completed. (RevenueCat.OfferingsManager.Error error 1.)

Into this:

🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
There are no products registered in the RevenueCat dashboard for your offerings. If you don't want to use the offerings system, you can safely ignore this message. To configure offerings and their products, follow the instructions in https://rev.cat/how-to-configure-offerings.
More information: https://rev.cat/why-are-offerings-empty

This was likely a regression at some point, leading to a confusing error message that was missing the underlying message inside of OfferingsManager.Error.configurationError.

…rationError` is logged

Changes this:
> ERROR: 🍎‼️ Error fetching offerings - The operation couldn't be completed. (RevenueCat.OfferingsManager.Error error 1.)

Into this:
> 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
There are no products registered in the RevenueCat dashboard for your offerings. If you don't want to use the offerings system, you can safely ignore this message. To configure offerings and their products, follow the instructions in https://rev.cat/how-to-configure-offerings.
More information: https://rev.cat/why-are-offerings-empty

This was likely a regression at some point, leading to a confusing error message that was missing the underlying `message` inside of `OfferingsManager.Error.configurationError`.
@NachoSoto NachoSoto added the pr:fix A bug fix label Feb 6, 2023
@NachoSoto NachoSoto requested a review from a team February 6, 2023 20:31
@codecov

codecov Bot commented Feb 6, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2266 (283f3dd) into main (c9fc938) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2266      +/-   ##
==========================================
+ Coverage   85.85%   85.89%   +0.03%     
==========================================
  Files         183      183              
  Lines       12119    12131      +12     
==========================================
+ Hits        10405    10420      +15     
+ Misses       1714     1711       -3     
Impacted Files Coverage Δ
Sources/Logging/Strings/OfferingStrings.swift 88.00% <100.00%> (+0.50%) ⬆️
Sources/Purchasing/OfferingsManager.swift 84.40% <100.00%> (+0.70%) ⬆️
...chasing/StoreKitAbstractions/SK1StoreProduct.swift 98.07% <0.00%> (+5.76%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@NachoSoto NachoSoto merged commit 6384246 into main Feb 8, 2023
@NachoSoto NachoSoto deleted the offerings-manager-error branch February 8, 2023 18:39
NachoSoto pushed a commit that referenced this pull request Feb 15, 2023
**This is an automatic release.**

### Bugfixes
* `PurchaseOrchestrator`: always refresh receipt purchasing in sandbox
(#2280) via NachoSoto (@NachoSoto)
* `BundleSandboxEnvironmentDetector`: always return `true` when running
on simulator (#2276) via NachoSoto (@NachoSoto)
* `OfferingsManager`: ensure underlying
`OfferingsManager.Error.configurationError` is logged (#2266) via
NachoSoto (@NachoSoto)
### Other Changes
* `UserDefaultsDefaultTests`: fixed flaky failures (#2284) via NachoSoto
(@NachoSoto)
* `BaseBackendTest`: improved test failure message (#2285) via NachoSoto
(@NachoSoto)
* Updated targets and schemes for Xcode 14.2 (#2282) via NachoSoto
(@NachoSoto)
* `HTTPRequest.Path.health`: don't cache using `ETagManager` (#2278) via
NachoSoto (@NachoSoto)
* `EntitlementInfos.all`: fixed docstring (#2279) via NachoSoto
(@NachoSoto)
* `StoreKit2StorefrontListener`: added tests to fix flaky code coverage
(#2265) via NachoSoto (@NachoSoto)
* `NetworkError`: added underlying error to description (#2263) via
NachoSoto (@NachoSoto)
* Created `Signing.verify(message:hasValidSignature:with:)` (#2216) via
NachoSoto (@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants