diff --git a/src/main.rs b/src/main.rs index e916f03..e372433 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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"), _ => (), }