Skip to content

ErrorUtils: handle PurchasesError to avoid creating unknown errors#2686

Merged
NachoSoto merged 1 commit into
mainfrom
error-utils-purchases-error-with-storekit-error-tests
Jun 22, 2023
Merged

ErrorUtils: handle PurchasesError to avoid creating unknown errors#2686
NachoSoto merged 1 commit into
mainfrom
error-utils-purchases-error-with-storekit-error-tests

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

If we end up calling these methods with an existing PurchasesError, we'd end up creating an .unknownError instead of returning that.
This is actually needed for #2683, where the inside of the do/catch can throw a PurchasesError.

If we end up calling these methods with an existing `PurchasesError`, we'd end up creating an `.unknownError` instead of returning that.
This is actually needed for #2683, where the inside of the `do`/`catch` can throw a `PurchasesError`.
@codecov

codecov Bot commented Jun 21, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2686 (0898a81) into main (7298dfa) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2686      +/-   ##
==========================================
- Coverage   86.56%   86.55%   -0.02%     
==========================================
  Files         208      208              
  Lines       14801    14804       +3     
==========================================
  Hits        12813    12813              
- Misses       1988     1991       +3     
Impacted Files Coverage Δ
Sources/Error Handling/ErrorUtils.swift 86.40% <100.00%> (+0.37%) ⬆️

... and 2 files with indirect coverage changes

@NachoSoto NachoSoto merged commit 37f9c00 into main Jun 22, 2023
@NachoSoto NachoSoto deleted the error-utils-purchases-error-with-storekit-error-tests branch June 22, 2023 13:54
NachoSoto pushed a commit that referenced this pull request Jun 22, 2023
**This is an automatic release.**

_This release is compatible with `Xcode 15 beta 2` and `visionOS beta
1`_

### New Features
* `xrOS`: added to list of supported platforms (#2682) via NachoSoto
(@NachoSoto)
### Bugfixes
* `xrOS`: fixed compilation by disabling debug overlay (#2681) via
NachoSoto (@NachoSoto)
* `xrOS`: added support for new `purchase(confirmIn:options:)` method
(#2683) via NachoSoto (@NachoSoto)
* `Xcode 15`: handle `Locale.currencyCode` deprecation (#2680) via
NachoSoto (@NachoSoto)
### Other Changes
* `PurchaseTester`: fixed release compilation (#2689) via NachoSoto
(@NachoSoto)
* `xrOS`: fixed runtime warning (#2691) via NachoSoto (@NachoSoto)
* `xrOS`: added support to `PurchaseTester` (#2685) via NachoSoto
(@NachoSoto)
* `Signature Verification`: new `Integration Tests` (#2642) via
NachoSoto (@NachoSoto)
* `ErrorUtils`: handle `PurchasesError` to avoid creating unknown errors
(#2686) via NachoSoto (@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants