From 58ea131c3f229917ea2d42de62beed5fc3842b77 Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 18 Feb 2021 17:33:29 +0000 Subject: [PATCH] fix broken finish match --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), _ => (), }