feat: add a bit more error handling / showing

This commit is contained in:
2025-12-16 10:58:09 +01:00
parent 62b0dee148
commit 26c312142a

View File

@@ -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(())
}