fix broken finish match

arg-parsing-better
Avril 4 years ago
parent f69ecbfcf1
commit 58ea131c3f
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -158,7 +158,7 @@ async fn normal(cfg: config::Config) -> eyre::Result<()>
#[cfg(feature="inspect")]
match writer.await {
Some(Ok(Ok(_))) if cfg.serialise_output.is_some() => cfg_eprintln!(Verbose; cfg, "Written successfully"),
Some(Ok(error)) => return error.wrap_err(eyre!("Failed to write graph to output stream")),
Some(Ok(error @ Err(_))) => return error.wrap_err(eyre!("Failed to write graph to output stream")),
Some(Err(_)) => cfg_eprintln!(Silent; cfg, "Panic while writing graph to stream"),
_ => (),
}

Loading…
Cancel
Save