diff --git a/src/main.rs b/src/main.rs index 61f777a..dfcd1ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,8 +13,10 @@ fn main() -> anyhow::Result<()> { let safe_utf8_content = String::from_utf8_lossy(&output_bytes); - output.write_all(safe_utf8_content.as_bytes())?; - output.flush()?; + output + .write_all(safe_utf8_content.as_bytes()) + .context("could not write to stdout")?; + output.flush().context("could not flush")?; Ok(()) }