1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

error handling

This commit is contained in:
dark64 2021-12-17 15:02:26 +01:00
parent f1b33d0a16
commit 02176fd6c9

View file

@ -68,7 +68,8 @@ fn cli_inspect<T: Field, I: Iterator<Item = ir::Statement<T>>>(
.and(write!(w, "{}", ir_prog))
.map_err(|why| format!("Could not write to `{}`: {}", output_path.display(), why))?;
w.flush().expect("could not flush buffer");
w.flush()
.map_err(|why| format!("Failed to flush the buffer: {}", why))?;
println!("ztf file written to '{}'", output_path.display());
}