mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
* refactor: model ForceServerErrorStrategy interception as a single Action enum The two closures (`fakeResponseWithoutPerformingRequest` and `shouldForceServerError`) encoded an implicit precedence rule that only lived in a doc comment. A single closure returning `Action` makes each request resolve to exactly one outcome. Co-authored-by: Cursor <cursoragent@cursor.com> * refactor: log the destination URL and faked status code when forcing errors Both messages previously identified only the request, so a faked 404 and a faked 204 looked identical, and there was no way to tell whether a forced error routed to the 502 endpoint or to an unreachable host. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>