Skip to content

Commit

Permalink
suppress Broken pipe message
Browse files Browse the repository at this point in the history
  • Loading branch information
sunrisewestern committed Jan 10, 2025
1 parent 5fea919 commit 66b3ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn main() {

if let Err(e) = io::stdout().write_all(output.as_bytes()) {
if e.kind() == io::ErrorKind::BrokenPipe {
eprintln!("Broken pipe detected. Exiting.");
// Do not print message to stderr
process::exit(0);
} else {
eprintln!("Error writing to stdout: {}", e);
Expand Down

0 comments on commit 66b3ad2

Please sign in to comment.