error handling
This commit is contained in:
parent
f1b33d0a16
commit
02176fd6c9
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue