|
|
|
@ -152,10 +152,10 @@ async fn normal(cfg: config::Config) -> eyre::Result<()>
|
|
|
|
|
|
|
|
|
|
#[cfg(feature="inspect")]
|
|
|
|
|
match writer.await {
|
|
|
|
|
None => (),
|
|
|
|
|
Some(Ok(Ok(_))) => cfg_eprintln!(Verbose; cfg, "Written successfully"),
|
|
|
|
|
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(Err(_)) => cfg_eprintln!(Silent; cfg, "Panic while writing graph to stream"),
|
|
|
|
|
_ => (),
|
|
|
|
|
}
|
|
|
|
|
#[cfg(not(feature="inspect"))] drop(writer);
|
|
|
|
|
|
|
|
|
|