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

Handle BrokenPipe when piping hx --health through head #1876

Merged
merged 2 commits into from
Mar 30, 2022

Commits on Mar 30, 2022

  1. Handle BrokenPipe when piping hx --health through head

    Functions in health.rs now return std:io::Result<()>. All instances of println!
    and eprintln! have been replaced with writeln!. This allows detection of errors
    while printing messages and errors. BrokenPipe errors are ignored. All other
    errors are returned.
    
    Fixes helix-editor#1841
    
    Signed-off-by: Nirmal Patel <npate012@gmail.com>
    nirmal-j-patel authored and sudormrfbin committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    42a06ec View commit details
    Browse the repository at this point in the history
  2. Refactor print_health

    sudormrfbin committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    5496c27 View commit details
    Browse the repository at this point in the history