Skip to content
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

fix(replacer): errors suppressed by catch statement #2856

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

SebKranz
Copy link
Contributor

This PR changes the signature of replacer so that it returns a boolean to signify whether patches were found rather than throwing.

Impact on clients:

  • The replacer isn't exported. Therefore it should be safe to change the signature
  • Users who have previously had hidden errors in their projects might now encounter crashes.

Relates to #2855

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c6bb255) to head (b4f1f9e).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2856   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          281       281           
  Lines        14139     14143    +4     
  Branches      1389      1389           
=========================================
+ Hits         14139     14143    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dolanmiu
Copy link
Owner

Does this fix #2855?

@dolanmiu dolanmiu merged commit 3997ce5 into dolanmiu:master Nov 28, 2024
8 checks passed
@SebKranz
Copy link
Contributor Author

Does this fix #2855?

No, it only makes it so that the faulty code no longer silently fails.
I will post a second PR that fixes the replacer crashing on empty runs.

@SebKranz SebKranz deleted the fix_suppressed_errors branch December 2, 2024 17:27
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