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