diff options
| -rw-r--r-- | zkvms_guest_io/src/main.rs | 4 | ||||
| -rw-r--r-- | zkvms_host_io/src/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/zkvms_guest_io/src/main.rs b/zkvms_guest_io/src/main.rs index ab20a32..23b7aef 100644 --- a/zkvms_guest_io/src/main.rs +++ b/zkvms_guest_io/src/main.rs @@ -131,12 +131,12 @@ fn main() { { Ok(file) => file, Err(e) => { - panic!("Failed to open file: {}", e); + panic!("Failed to open metrics output file \"{path}\": {e}"); } }; if let Err(e) = writeln!(outfile, "{}", runs.dump()) { - panic!("Failed to write output: {}", e); + panic!("Failed to write to metrics output file \"{path}\": {e}"); } } else { println!("{}", runs.dump()); diff --git a/zkvms_host_io/src/lib.rs b/zkvms_host_io/src/lib.rs index bf7ebc4..ee66bae 100644 --- a/zkvms_host_io/src/lib.rs +++ b/zkvms_host_io/src/lib.rs @@ -206,12 +206,12 @@ pub fn emit_benchmark_results(run_info: RunWith, starts: Vec<Instant>, ends: Vec { Ok(file) => file, Err(e) => { - panic!("Failed to open file: {}", e); + panic!("Failed to open metrics output file \"{path}\": {e}"); } }; if let Err(e) = writeln!(outfile, "{}", run.dump()) { - panic!("Failed to write output: {}", e); + panic!("Failed to write to metrics output file \"{path}\": {e}"); } } else { println!("{}", run.dump()); |
