feat: add a bit more error handling / showing
This commit is contained in:
@@ -13,8 +13,10 @@ fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
let safe_utf8_content = String::from_utf8_lossy(&output_bytes);
|
let safe_utf8_content = String::from_utf8_lossy(&output_bytes);
|
||||||
|
|
||||||
output.write_all(safe_utf8_content.as_bytes())?;
|
output
|
||||||
output.flush()?;
|
.write_all(safe_utf8_content.as_bytes())
|
||||||
|
.context("could not write to stdout")?;
|
||||||
|
output.flush().context("could not flush")?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user