aboutsummaryrefslogtreecommitdiff
path: root/zkvms_host_io/src/lib.rs
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2025-04-30 13:41:49 +0300
committerKamen Mladenov <kamen@syndamia.com>2025-05-02 15:32:54 +0300
commit42d9672e3f2110c58d1af9de542a08ba0ab6f358 (patch)
treeaa675d8534587498acd30d2a274c9ab913fa1ec2 /zkvms_host_io/src/lib.rs
parent3a336963d789fa3095728d5a6ed283fe4ecee86e (diff)
downloadzkVMs-benchmarks-42d9672e3f2110c58d1af9de542a08ba0ab6f358.tar
zkVMs-benchmarks-42d9672e3f2110c58d1af9de542a08ba0ab6f358.tar.gz
zkVMs-benchmarks-42d9672e3f2110c58d1af9de542a08ba0ab6f358.zip
fix(zkvms io): More detailed errors on metrics output failure
Diffstat (limited to 'zkvms_host_io/src/lib.rs')
-rw-r--r--zkvms_host_io/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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());