Skip to content

Improve error handling, fix base URL comparison bug #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 23, 2023
Merged

Conversation

nwithan8
Copy link
Contributor

@nwithan8 nwithan8 commented Mar 23, 2023

No more ambiguous NullPointerException when there's no matching recording in a cassette. Instead it's a RuntimeException (due to how the exceptions are coalesced internally) wrapping a VCRException, with a human-readable error message.

Before:
image

After:
image

Fixes a bug that was comparing the wrong data when matching by base URLs

… there's no matching recording in a cassette)
@nwithan8 nwithan8 requested a review from a team March 23, 2023 21:36
@nwithan8 nwithan8 marked this pull request as draft March 23, 2023 21:38
- Fix bug with comparing base URLs
@nwithan8 nwithan8 changed the title Improve error handling Improve error handling, fix base URL comparison bug Mar 23, 2023
@nwithan8 nwithan8 marked this pull request as ready for review March 23, 2023 22:16
jchen293
jchen293 previously approved these changes Mar 23, 2023
@nwithan8 nwithan8 dismissed stale reviews from Justintime50 and jchen293 via aebf596 March 23, 2023 22:30
@nwithan8 nwithan8 requested a review from Justintime50 March 23, 2023 22:30
@nwithan8 nwithan8 merged commit 4d328e6 into main Mar 23, 2023
@nwithan8 nwithan8 deleted the cleaner_errors branch March 23, 2023 23:13
@nwithan8 nwithan8 mentioned this pull request Mar 23, 2023
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.

3 participants