Do not print anything on broken pipe errors

[?]
Jan 13, 2021, 10:26 PM
R245EVN36J34PTG3I2RMX5LIOT76LCPL5RZ2H22BCIXFBGJYJ25QC

Dependencies

  • [2] SNZ3OAMC use native external subcommand support instead of hand-rolled one
  • [3] RJMQSZER External commands
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • replacement in pijul/src/main.rs at line 135
    [2.169][2.169:236]()
    writeln!(std::io::stderr(), "Error: {}", e).unwrap_or(());
    [2.169]
    [2.236]
    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(()),
    }