Skip to content

fix: Handle write failures when printing --help/--version#656

Open
Xylphy wants to merge 1 commit intouutils:mainfrom
Xylphy:fix/help-version-write-errors-622
Open

fix: Handle write failures when printing --help/--version#656
Xylphy wants to merge 1 commit intouutils:mainfrom
Xylphy:fix/help-version-write-errors-622

Conversation

@Xylphy
Copy link
Copy Markdown

@Xylphy Xylphy commented Apr 9, 2026

Fixes #622

Summary

Make print_help and print_version write via the Dependencies output and return Result; propagate errors from do_find so find_main exits with a non-zero code instead of panicking.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 76.47059% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.83%. Comparing base (3fb0a98) to head (6c05ce0).

Files with missing lines Patch % Lines
src/find/mod.rs 76.47% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #656      +/-   ##
==========================================
+ Coverage   91.76%   91.83%   +0.06%     
==========================================
  Files          31       31              
  Lines        6203     6231      +28     
  Branches      328      328              
==========================================
+ Hits         5692     5722      +30     
  Misses        390      390              
+ Partials      121      119       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

find/xargs --help/--version >/dev/full panics

1 participant