Do not print anything on broken pipe errors
[?]
Jan 13, 2021, 10:26 PM
R245EVN36J34PTG3I2RMX5LIOT76LCPL5RZ2H22BCIXFBGJYJ25QCDependencies
- [2]
SNZ3OAMCuse native external subcommand support instead of hand-rolled one - [3]
RJMQSZERExternal commands - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in pijul/src/main.rs at line 135
writeln!(std::io::stderr(), "Error: {}", e).unwrap_or(());match e.downcast::<std::io::Error>() {Ok(e) if e.kind() == std::io::ErrorKind::BrokenPipe => {}Ok(e) => writeln!(std::io::stderr(), "Error: {}", e).unwrap_or(()),Err(e) => writeln!(std::io::stderr(), "Error: {}", e).unwrap_or(()),}