-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #1841 Signed-off-by: Nirmal Patel <npate012@gmail.com>
- Loading branch information
1 parent
c8082a1
commit f7d3e40
Showing
2 changed files
with
105 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters